This repository was archived by the owner on Jun 25, 2024. It is now read-only.
File tree 3 files changed +7
-5
lines changed
src/main/java/com/orange/labs/orangetrainingbox/ui
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ android {
39
39
minSdkVersion rootProject. minSdkVersion
40
40
targetSdkVersion rootProject. targetSdkVersion
41
41
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
42
- versionCode 22
43
- versionName " 0.6 .0"
42
+ versionCode 23
43
+ versionName " 0.7 .0"
44
44
vectorDrawables. useSupportLibrary true
45
45
}
46
46
buildTypes {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ private val BluetoothAdapter.isDisabled: Boolean
73
73
* @author Marc Poppleton
74
74
* @author Pierre-Yves Lapersonne
75
75
* @since 23/10/2018
76
- * @version 2.1.0
76
+ * @version 2.1.1
77
77
*/
78
78
class MainActivity : AppCompatActivity () {
79
79
@@ -247,7 +247,9 @@ class MainActivity : AppCompatActivity() {
247
247
*/
248
248
override fun onDestroy () {
249
249
super .onDestroy()
250
- bluetoothGatt.close()
250
+ if (::bluetoothGatt.isInitialized) {
251
+ bluetoothGatt.close()
252
+ }
251
253
}
252
254
253
255
/* *
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ buildscript {
27
27
targetSdkVersion = 28
28
28
29
29
// App dependencies
30
- gradleVersion = ' 3.4.1 '
30
+ gradleVersion = ' 3.4.2 '
31
31
supportLibraryVersion = ' 1.0.2'
32
32
kotlinVersion = ' 1.3.11'
33
33
kotlinCoroutinesVersion = ' 1.0.1'
You can’t perform that action at this time.
0 commit comments