adding a null check to onStop
This commit is contained in:
parent
cb9093e78f
commit
09d9a7d5ab
|
@ -63,7 +63,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:4854d74def'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:db51b86628'
|
||||
|
||||
kapt "androidx.room:room-compiler:2.4.3"
|
||||
implementation "androidx.room:room-runtime:2.4.3"
|
||||
|
|
|
@ -186,7 +186,7 @@ class MainActivity : SimpleActivity(), FlingListener {
|
|||
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
home_screen_grid.appWidgetHost.stopListening()
|
||||
home_screen_grid?.appWidgetHost?.stopListening()
|
||||
}
|
||||
|
||||
override fun onBackPressed() {
|
||||
|
|
Loading…
Reference in New Issue