remember last used viewpager fragment in onPause to make it more reliable

This commit is contained in:
tibbi 2021-11-21 21:23:03 +01:00
parent a172d893bc
commit 03d876f05a
2 changed files with 3 additions and 3 deletions

View File

@ -55,6 +55,6 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:307941253d'
implementation 'com.github.SimpleMobileTools:Simple-Commons:c184f98ca8'
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
}

View File

@ -93,8 +93,8 @@ class MainActivity : SimpleActivity() {
}, 2000)
}
override fun onDestroy() {
super.onDestroy()
override fun onPause() {
super.onPause()
config.lastUsedViewPagerPage = viewpager.currentItem
}