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

Commit e36b59a8 authored by Tom Hsu's avatar Tom Hsu Committed by Android (Google) Code Review
Browse files

Merge "[EXpressive UI] Make title of App list page without list data." into main

parents e540be62 92ac7f61
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) {