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:
Chaohui Wang
2022-09-27 11:40:28 +08:00
parent 61170b1c0b
commit 9e7c6d5ed6
2 changed files with 2 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ private fun AllAppListPage() {
AppListPage(
title = stringResource(R.string.all_apps),
listModel = rememberContext(::AllAppListModel),
showInstantApps = true,
) { itemModel ->
AppListItem(
itemModel = itemModel,

View File

@@ -58,7 +58,7 @@ class AppDisableButton(
if (!app.hasFlag(ApplicationInfo.FLAG_SYSTEM)) return null
return when {
app.enabled && !app.isDisabledUntilUsed() -> {
app.enabled && !app.isDisabledUntilUsed -> {
disableButton(enabled = isDisableButtonEnabled(packageInfo))
}