fixing a threading crash

This commit is contained in:
tibbi 2022-04-06 20:00:43 +02:00
parent cec880ee1d
commit 030deb8901

View File

@ -250,11 +250,13 @@ class SettingsActivity : SimpleActivity() {
if (widgets.size == 1) { if (widgets.size == 1) {
widgetToCustomize = widgets.first() widgetToCustomize = widgets.first()
} else if (widgets.size > 1) { } else if (widgets.size > 1) {
runOnUiThread {
settings_customize_widget_colors_holder.beGone() settings_customize_widget_colors_holder.beGone()
settings_customize_colors_holder.background = resources.getDrawable(R.drawable.ripple_all_corners, theme) settings_customize_colors_holder.background = resources.getDrawable(R.drawable.ripple_all_corners, theme)
} }
} }
} }
}
private fun setupIncognitoMode() { private fun setupIncognitoMode() {
settings_use_incognito_mode_holder.beVisibleIf(isOreoPlus()) settings_use_incognito_mode_holder.beVisibleIf(isOreoPlus())