Fix settings icon rotation

This commit is contained in:
Finn M Glas 2020-06-26 08:23:18 +02:00
parent 69c084ac51
commit 4f5974d997
No known key found for this signature in database
GPG key ID: 902A30146014DFBF

View file

@ -126,8 +126,6 @@ class HomeActivity: UIObject, AppCompatActivity(),
override fun onPause() { override fun onPause() {
super.onPause() super.onPause()
clockTimer.cancel() clockTimer.cancel()
hideSettingsIcon()
} }
override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean { override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
@ -207,7 +205,7 @@ class HomeActivity: UIObject, AppCompatActivity(),
override fun applyTheme() { override fun applyTheme() {
// Start by showing the settings icon // Start by showing the settings icon
showSettingsIcon() if (!settingsIconShown) showSettingsIcon()
home_settings_icon.setTextColor(vibrantColor) home_settings_icon.setTextColor(vibrantColor)
home_container.setBackgroundColor(dominantColor) home_container.setBackgroundColor(dominantColor)