Set showInstantApps = true for All App List
Instant Apps are designed only shows in the All App List and the Storage App List. Bug: 235727273 Test: Manual with Settings App Change-Id: I42e49582c06a7e6aad20ad92627a631584597533
This commit is contained in:
@@ -66,6 +66,7 @@ private fun AllAppListPage() {
|
|||||||
AppListPage(
|
AppListPage(
|
||||||
title = stringResource(R.string.all_apps),
|
title = stringResource(R.string.all_apps),
|
||||||
listModel = rememberContext(::AllAppListModel),
|
listModel = rememberContext(::AllAppListModel),
|
||||||
|
showInstantApps = true,
|
||||||
) { itemModel ->
|
) { itemModel ->
|
||||||
AppListItem(
|
AppListItem(
|
||||||
itemModel = itemModel,
|
itemModel = itemModel,
|
||||||
|
@@ -58,7 +58,7 @@ class AppDisableButton(
|
|||||||
if (!app.hasFlag(ApplicationInfo.FLAG_SYSTEM)) return null
|
if (!app.hasFlag(ApplicationInfo.FLAG_SYSTEM)) return null
|
||||||
|
|
||||||
return when {
|
return when {
|
||||||
app.enabled && !app.isDisabledUntilUsed() -> {
|
app.enabled && !app.isDisabledUntilUsed -> {
|
||||||
disableButton(enabled = isDisableButtonEnabled(packageInfo))
|
disableButton(enabled = isDisableButtonEnabled(packageInfo))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user