Skip to content

Commit 09d9a7d

Browse files
committed
adding a null check to onStop
1 parent cb9093e commit 09d9a7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ android {
6363
}
6464

6565
dependencies {
66-
implementation 'com.github.SimpleMobileTools:Simple-Commons:4854d74def'
66+
implementation 'com.github.SimpleMobileTools:Simple-Commons:db51b86628'
6767

6868
kapt "androidx.room:room-compiler:2.4.3"
6969
implementation "androidx.room:room-runtime:2.4.3"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class MainActivity : SimpleActivity(), FlingListener {
186186

187187
override fun onStop() {
188188
super.onStop()
189-
home_screen_grid.appWidgetHost.stopListening()
189+
home_screen_grid?.appWidgetHost?.stopListening()
190190
}
191191

192192
override fun onBackPressed() {

0 commit comments

Comments
 (0)