store state variables on pause

This commit is contained in:
tibbi 2017-11-10 21:30:52 +01:00
parent e3fd20473b
commit f0e0d5ff9a

View File

@ -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)