Skip to content

Commit

Permalink
fix bluetooth reconnection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
voroshkov committed Oct 25, 2017
1 parent 6218013 commit 1e01318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Android/ChorusRFLaptimer/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 1e01318

Please sign in to comment.