Merge "Set showInstantApps = true for All App List"

This commit is contained in:
Chaohui Wang
2022-09-28 02:29:18 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -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,

View File

@@ -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))
} }