mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-03-27 16:50:16 +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 {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:307941253d'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:c184f98ca8'
|
||||||
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
|
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
|
||||||
}
|
}
|
||||||
|
@ -93,8 +93,8 @@ class MainActivity : SimpleActivity() {
|
|||||||
}, 2000)
|
}, 2000)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onPause() {
|
||||||
super.onDestroy()
|
super.onPause()
|
||||||
config.lastUsedViewPagerPage = viewpager.currentItem
|
config.lastUsedViewPagerPage = viewpager.currentItem
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user