adding a null check to onStop

This commit is contained in:
tibbi 2022-10-16 22:48:51 +02:00
parent cb9093e78f
commit 09d9a7d5ab
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:4854d74def' implementation 'com.github.SimpleMobileTools:Simple-Commons:db51b86628'
kapt "androidx.room:room-compiler:2.4.3" kapt "androidx.room:room-compiler:2.4.3"
implementation "androidx.room:room-runtime:2.4.3" implementation "androidx.room:room-runtime:2.4.3"

View File

@ -186,7 +186,7 @@ class MainActivity : SimpleActivity(), FlingListener {
override fun onStop() { override fun onStop() {
super.onStop() super.onStop()
home_screen_grid.appWidgetHost.stopListening() home_screen_grid?.appWidgetHost?.stopListening()
} }
override fun onBackPressed() { override fun onBackPressed() {