Loading packages/SystemUI/src/com/android/systemui/controls/management/ControlAdapter.kt +1 −0 Original line number Diff line number Diff line Loading @@ -263,6 +263,7 @@ internal class ControlHolder( val context = itemView.context val fg = context.getResources().getColorStateList(ri.foreground, context.getTheme()) icon.imageTintList = null ci.customIcon?.let { icon.setImageIcon(it) } ?: run { Loading packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt +5 −1 Original line number Diff line number Diff line Loading @@ -104,6 +104,7 @@ class ControlsUiControllerImpl @Inject constructor ( private var hidden = true private lateinit var dismissGlobalActions: Runnable private val popupThemedContext = ContextThemeWrapper(context, R.style.Control_ListPopupWindow) private var retainCache = false private val collator = Collator.getInstance(context.resources.configuration.locales[0]) private val localeComparator = compareBy<SelectionItem, CharSequence>(collator) { Loading Loading @@ -149,6 +150,7 @@ class ControlsUiControllerImpl @Inject constructor ( this.parent = parent this.dismissGlobalActions = dismissGlobalActions hidden = false retainCache = false allStructures = controlsController.get().getFavorites() selectedStructure = loadPreference(allStructures) Loading Loading @@ -235,6 +237,8 @@ class ControlsUiControllerImpl @Inject constructor ( } putIntentExtras(i, si) startActivity(context, i) retainCache = true } private fun putIntentExtras(intent: Intent, si: StructureInfo) { Loading Loading @@ -497,7 +501,7 @@ class ControlsUiControllerImpl @Inject constructor ( controlsListingController.get().removeCallback(listingCallback) RenderInfo.clearCache() if (!retainCache) RenderInfo.clearCache() } override fun onRefreshState(componentName: ComponentName, controls: List<Control>) { Loading Loading
packages/SystemUI/src/com/android/systemui/controls/management/ControlAdapter.kt +1 −0 Original line number Diff line number Diff line Loading @@ -263,6 +263,7 @@ internal class ControlHolder( val context = itemView.context val fg = context.getResources().getColorStateList(ri.foreground, context.getTheme()) icon.imageTintList = null ci.customIcon?.let { icon.setImageIcon(it) } ?: run { Loading
packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt +5 −1 Original line number Diff line number Diff line Loading @@ -104,6 +104,7 @@ class ControlsUiControllerImpl @Inject constructor ( private var hidden = true private lateinit var dismissGlobalActions: Runnable private val popupThemedContext = ContextThemeWrapper(context, R.style.Control_ListPopupWindow) private var retainCache = false private val collator = Collator.getInstance(context.resources.configuration.locales[0]) private val localeComparator = compareBy<SelectionItem, CharSequence>(collator) { Loading Loading @@ -149,6 +150,7 @@ class ControlsUiControllerImpl @Inject constructor ( this.parent = parent this.dismissGlobalActions = dismissGlobalActions hidden = false retainCache = false allStructures = controlsController.get().getFavorites() selectedStructure = loadPreference(allStructures) Loading Loading @@ -235,6 +237,8 @@ class ControlsUiControllerImpl @Inject constructor ( } putIntentExtras(i, si) startActivity(context, i) retainCache = true } private fun putIntentExtras(intent: Intent, si: StructureInfo) { Loading Loading @@ -497,7 +501,7 @@ class ControlsUiControllerImpl @Inject constructor ( controlsListingController.get().removeCallback(listingCallback) RenderInfo.clearCache() if (!retainCache) RenderInfo.clearCache() } override fun onRefreshState(componentName: ComponentName, controls: List<Control>) { Loading