Skip to content

Commit dd49d68

Browse files
committed
update commons to 3.0.23 with minor improvements
1 parent c083976 commit dd49d68

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ android {
2020
}
2121

2222
buildTypes {
23-
debug {
24-
buildConfigField "boolean", "USE_LEAK_CANARY", "true"
25-
}
2623
release {
2724
minifyEnabled true
2825
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2926
signingConfig signingConfigs.release
30-
buildConfigField "boolean", "USE_LEAK_CANARY", "false"
3127
}
3228
}
3329

@@ -46,7 +42,7 @@ ext {
4642
}
4743

4844
dependencies {
49-
implementation 'com.simplemobiletools:commons:3.0.21'
45+
implementation 'com.simplemobiletools:commons:3.0.23'
5046

5147
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
5248
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"

app/src/main/kotlin/com/simplemobiletools/draw/App.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ package com.simplemobiletools.draw
22

33
import android.app.Application
44
import com.simplemobiletools.commons.extensions.checkUseEnglish
5-
import com.simplemobiletools.draw.BuildConfig.USE_LEAK_CANARY
65
import com.squareup.leakcanary.LeakCanary
76

87
class App : Application() {
98
override fun onCreate() {
109
super.onCreate()
11-
if (USE_LEAK_CANARY) {
10+
if (BuildConfig.DEBUG) {
1211
if (LeakCanary.isInAnalyzerProcess(this)) {
1312
return
1413
}

app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ class MainActivity : SimpleActivity(), CanvasListener {
8888
storeStateVariables()
8989
}
9090

91+
override fun onDestroy() {
92+
super.onDestroy()
93+
my_canvas.mListener = null
94+
}
95+
9196
override fun onCreateOptionsMenu(menu: Menu): Boolean {
9297
menuInflater.inflate(R.menu.menu, menu)
9398
menu.apply {

0 commit comments

Comments
 (0)