Merge "Controls UI - Handle all apps removed" into rvc-dev am: de54cb473e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11718264 Change-Id: Ia57c1347977562827e2f3d136a15033b120a5465
This commit is contained in:
@@ -129,7 +129,10 @@ class ControlsUiControllerImpl @Inject constructor (
|
|||||||
SelectionItem(it.loadLabel(), "", it.loadIcon(), it.componentName)
|
SelectionItem(it.loadLabel(), "", it.loadIcon(), it.componentName)
|
||||||
}
|
}
|
||||||
uiExecutor.execute {
|
uiExecutor.execute {
|
||||||
onResult(lastItems)
|
parent.removeAllViews()
|
||||||
|
if (lastItems.size > 0) {
|
||||||
|
onResult(lastItems)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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)
|
||||||
@@ -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)
|
||||||
|
|
||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user