diff --git a/Android/ChorusRFLaptimer/app/build.gradle b/Android/ChorusRFLaptimer/app/build.gradle index c6b66b9..c418e85 100644 --- a/Android/ChorusRFLaptimer/app/build.gradle +++ b/Android/ChorusRFLaptimer/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "app.andrey_voroshkov.chorus_laptimer" minSdkVersion 16 targetSdkVersion 25 - versionCode 14 - versionName "0.7.2" + versionCode 15 + versionName "0.7.3" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" archivesBaseName = "ChorusRFLaptimer" } diff --git a/Android/ChorusRFLaptimer/app/src/main/java/app/andrey_voroshkov/chorus_laptimer/MainActivity.java b/Android/ChorusRFLaptimer/app/src/main/java/app/andrey_voroshkov/chorus_laptimer/MainActivity.java index d6bbc5d..6acfd1c 100644 --- a/Android/ChorusRFLaptimer/app/src/main/java/app/andrey_voroshkov/chorus_laptimer/MainActivity.java +++ b/Android/ChorusRFLaptimer/app/src/main/java/app/andrey_voroshkov/chorus_laptimer/MainActivity.java @@ -329,10 +329,10 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == BluetoothState.REQUEST_CONNECT_DEVICE) { if (resultCode == Activity.RESULT_OK) bt.connect(data); + useBT(); } else if(requestCode == BluetoothState.REQUEST_ENABLE_BT) { if(resultCode == Activity.RESULT_OK) { bt.runService(); - useBT(); } else { Toast.makeText(getApplicationContext() , "Bluetooth was not enabled."