1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-23 18:36:50 +01:00

fix crash when no Pebble was paired, change version to 0.1.0, build tweaks

This commit is contained in:
Andreas Shimokawa 2015-03-11 12:40:59 +01:00
parent 6fa99082ab
commit 326e079068
4 changed files with 16 additions and 6 deletions

View File

@ -11,12 +11,12 @@ Features:
* Incoming calls notification and display (caller, phone number)
* Outgoing call display
* Reject/Hangup Calls
* Reject/hangup calls
* SMS notification (sender, body)
* K-9 Mail notification support (sender, subject, preview)
* Support for generic notificaions (above filtered out)
* Apollo Music Playback info (artist, album, track)
* Music Control: Play/Pause, Next Track, Previous Track
* Apollo playback info (artist, album, track)
* Music control: play/pause, next track, previous track
How to use:

View File

@ -4,12 +4,15 @@ android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "nodomain.freeyourgadget.gadgetbridge"
minSdkVersion 19
targetSdkVersion 21
versionCode 1
versionName "1.0"
versionName "0.1.0"
}
buildTypes {
release {

View File

@ -170,8 +170,10 @@ public class BluetoothCommunicationService extends Service {
btDeviceAddress = device.getAddress();
}
}
if (mBtSocket == null || !mBtSocket.isConnected()) {
if (btDeviceAddress == null) {
Toast.makeText(this, "No supported device paired", Toast.LENGTH_SHORT).show();
}
else if (mBtSocket == null || !mBtSocket.isConnected()) {
// currently only one thread allowed
if (mBtSocketIoThread != null) {
mBtSocketIoThread.quit();

View File

@ -17,3 +17,8 @@ allprojects {
jcenter()
}
}
ext {
compileSdkVersion = 21
buildToolsVersion = "21.1.2"
}