Loading packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt +4 −6 Original line number Original line Diff line number Diff line Loading @@ -129,12 +129,15 @@ class ControlsUiControllerImpl @Inject constructor ( SelectionItem(it.loadLabel(), "", it.loadIcon(), it.componentName) SelectionItem(it.loadLabel(), "", it.loadIcon(), it.componentName) } } uiExecutor.execute { uiExecutor.execute { parent.removeAllViews() if (lastItems.size > 0) { onResult(lastItems) onResult(lastItems) } } } } } } } } } } } override fun show(parent: ViewGroup, dismissGlobalActions: Runnable) { override fun show(parent: ViewGroup, dismissGlobalActions: Runnable) { Log.d(ControlsUiController.TAG, "show()") Log.d(ControlsUiController.TAG, "show()") Loading Loading @@ -189,8 +192,6 @@ class ControlsUiControllerImpl @Inject constructor ( } } private fun showSeedingView(items: List<SelectionItem>) { private fun showSeedingView(items: List<SelectionItem>) { parent.removeAllViews() val inflater = LayoutInflater.from(context) val inflater = LayoutInflater.from(context) inflater.inflate(R.layout.controls_no_favorites, parent, true) inflater.inflate(R.layout.controls_no_favorites, parent, true) val subtitle = parent.requireViewById<TextView>(R.id.controls_subtitle) val subtitle = parent.requireViewById<TextView>(R.id.controls_subtitle) Loading @@ -198,8 +199,6 @@ class ControlsUiControllerImpl @Inject constructor ( } } private fun showInitialSetupView(items: List<SelectionItem>) { private fun showInitialSetupView(items: List<SelectionItem>) { parent.removeAllViews() val inflater = LayoutInflater.from(context) val inflater = LayoutInflater.from(context) inflater.inflate(R.layout.controls_no_favorites, parent, true) inflater.inflate(R.layout.controls_no_favorites, parent, true) Loading Loading @@ -263,7 +262,6 @@ class ControlsUiControllerImpl @Inject constructor ( } } private fun showControlsView(items: List<SelectionItem>) { private fun showControlsView(items: List<SelectionItem>) { parent.removeAllViews() controlViewsById.clear() controlViewsById.clear() createListView() createListView() Loading Loading
packages/SystemUI/src/com/android/systemui/controls/ui/ControlsUiControllerImpl.kt +4 −6 Original line number Original line Diff line number Diff line Loading @@ -129,12 +129,15 @@ class ControlsUiControllerImpl @Inject constructor ( SelectionItem(it.loadLabel(), "", it.loadIcon(), it.componentName) SelectionItem(it.loadLabel(), "", it.loadIcon(), it.componentName) } } uiExecutor.execute { uiExecutor.execute { parent.removeAllViews() if (lastItems.size > 0) { onResult(lastItems) onResult(lastItems) } } } } } } } } } } } override fun show(parent: ViewGroup, dismissGlobalActions: Runnable) { override fun show(parent: ViewGroup, dismissGlobalActions: Runnable) { Log.d(ControlsUiController.TAG, "show()") Log.d(ControlsUiController.TAG, "show()") Loading Loading @@ -189,8 +192,6 @@ class ControlsUiControllerImpl @Inject constructor ( } } private fun showSeedingView(items: List<SelectionItem>) { private fun showSeedingView(items: List<SelectionItem>) { parent.removeAllViews() val inflater = LayoutInflater.from(context) val inflater = LayoutInflater.from(context) inflater.inflate(R.layout.controls_no_favorites, parent, true) inflater.inflate(R.layout.controls_no_favorites, parent, true) val subtitle = parent.requireViewById<TextView>(R.id.controls_subtitle) val subtitle = parent.requireViewById<TextView>(R.id.controls_subtitle) Loading @@ -198,8 +199,6 @@ class ControlsUiControllerImpl @Inject constructor ( } } private fun showInitialSetupView(items: List<SelectionItem>) { private fun showInitialSetupView(items: List<SelectionItem>) { parent.removeAllViews() val inflater = LayoutInflater.from(context) val inflater = LayoutInflater.from(context) inflater.inflate(R.layout.controls_no_favorites, parent, true) inflater.inflate(R.layout.controls_no_favorites, parent, true) Loading Loading @@ -263,7 +262,6 @@ class ControlsUiControllerImpl @Inject constructor ( } } private fun showControlsView(items: List<SelectionItem>) { private fun showControlsView(items: List<SelectionItem>) { parent.removeAllViews() controlViewsById.clear() controlViewsById.clear() createListView() createListView() Loading