mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-03-14 02:10:10 +01:00
remember last used viewpager fragment in onPause to make it more reliable
This commit is contained in:
parent
a172d893bc
commit
03d876f05a
@ -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'
|
||||
}
|
||||
|
@ -93,8 +93,8 @@ class MainActivity : SimpleActivity() {
|
||||
}, 2000)
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
override fun onPause() {
|
||||
super.onPause()
|
||||
config.lastUsedViewPagerPage = viewpager.currentItem
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user