Migrate the About page in Settings.

This change adds the "About" page and the "Device name" Preference.

However, due to the lack of editable text support in the alert dialog (SPA widget), the device name can't be changed at the moment.

Bug: 269486170
Test: manual, see screenshots.
Change-Id: Ie6b034d82b1718c8f22366ef525fd6d36e4df9ad
This commit is contained in:
Carbo Kuo
2023-02-15 19:19:13 +00:00
parent 282b5201a7
commit 107d7fc5c6
5 changed files with 169 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
package com.android.settings.spa
import android.content.Context
import com.android.settings.spa.about.AboutPhonePageProvider
import com.android.settings.spa.app.AllAppListPageProvider
import com.android.settings.spa.app.AppsMainPageProvider
import com.android.settings.spa.app.appinfo.AppInfoSettingsProvider
@@ -81,6 +82,7 @@ open class SettingsSpaEnvironment(context: Context) : SpaEnvironment(context) {
BackgroundInstalledAppsPageProvider,
CloneAppInfoSettingsProvider,
NetworkAndInternetPageProvider,
AboutPhonePageProvider,
) + togglePermissionAppListTemplate.createPageProviders(),
rootPages = listOf(
SettingsPage.create(HomePageProvider.name),