Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92ac7f61 authored by tom hsu's avatar tom hsu
Browse files

[EXpressive UI] Make title of App list page without list data.

Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Fix: b/417893176
Test: Visual
Change-Id: I73ba4df7f5d5609e28479ea0bb5e3240cc02bd3f
parent e254f2e7
Loading
Loading
Loading
Loading
+13 −5
Original line number Diff line number Diff line
@@ -141,12 +141,20 @@ private fun <T : AppRecord> AppListModel<T>.AppListWidget(
    appListData.value?.let { (list, option) ->
        timeMeasurer.logFirst("app list first loaded")
        if (list.isEmpty()) {
            header()
            LazyColumn(
                modifier = Modifier.fillMaxSize(),
                state = rememberLazyListStateAndHideKeyboardWhenStartScroll(),
                contentPadding = PaddingValues(bottom = bottomPadding)
            ) {
                item { header() }
                item {
                    if (isSpaExpressiveEnabled) {
                        ZeroStatePreference(noAppInfo.icon, stringResource(noAppInfo.title))
                    } else {
                        PlaceholderTitle(noItemMessage ?: stringResource(R.string.no_applications))
                    }
                }
            }
            return
        }
        if (isSpaExpressiveEnabled) {