mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-01-30 22:14:52 +01:00
store state variables on pause
This commit is contained in:
parent
e3fd20473b
commit
f0e0d5ff9a
@ -94,6 +94,11 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
|||||||
updateTextColors(view_pager)
|
updateTextColors(view_pager)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onPause() {
|
||||||
|
super.onPause()
|
||||||
|
storeStateVariables()
|
||||||
|
}
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||||
menuInflater.inflate(R.menu.menu, menu)
|
menuInflater.inflate(R.menu.menu, menu)
|
||||||
updateMenuTextSize(resources, menu)
|
updateMenuTextSize(resources, menu)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user