mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-25 08:40:43 +02:00
fix crash when no Pebble was paired, change version to 0.1.0, build tweaks
This commit is contained in:
parent
6fa99082ab
commit
326e079068
@ -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:
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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();
|
||||
|
@ -17,3 +17,8 @@ allprojects {
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
compileSdkVersion = 21
|
||||
buildToolsVersion = "21.1.2"
|
||||
}
|
Loading…
Reference in New Issue
Block a user