mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-06 22:51:05 +02:00
save current tab in onStop
onDestroy sometimes (often) isn't called
This commit is contained in:
parent
490679a3c8
commit
c1ac6c35a0
@ -78,8 +78,8 @@ class MainActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onStop() {
|
||||||
super.onDestroy()
|
super.onStop()
|
||||||
config.lastUsedViewPagerPage = view_pager.currentItem
|
config.lastUsedViewPagerPage = view_pager.currentItem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user