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

Commit ac2bfce1 authored by Graciela Wissen Putri's avatar Graciela Wissen Putri Committed by Graciela Putri
Browse files

Change title to aspect ratio (experimental)

Settings > Apps > Aspect ratio (experimental)
Settings > Apps > App info > Aspect ratio (experimental)

Fix: 300219974
Test: Manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:83b61850f3ed511b42c148b63840b12cff3fe5aa)
Merged-In: I359c744025232c6a6ebd9628dbf91acac85b53e9
Change-Id: I359c744025232c6a6ebd9628dbf91acac85b53e9
parent ab64754c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@

    <Preference
        android:key="aspect_ratio_apps"
        android:title="@string/aspect_ratio_title"
        android:title="@string/aspect_ratio_experimental_title"
        android:summary="@string/summary_placeholder"
        android:order="22"
        settings:controller="com.android.settings.applications.appcompat.UserAspectRatioAppsPreferenceController"
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:title="@string/aspect_ratio_title">
    android:title="@string/aspect_ratio_experimental_title">

    <com.android.settingslib.widget.ActionButtonsPreference
        android:key="header_view" />
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ fun UserAspectRatioAppPreference(app: ApplicationInfo) {
    if (!presenter.isAvailableFlow.collectAsStateWithLifecycle(initialValue = false).value) return

    Preference(object : PreferenceModel {
        override val title = stringResource(R.string.aspect_ratio_title)
        override val title = stringResource(R.string.aspect_ratio_experimental_title)
        override val summary = presenter.summaryFlow.collectAsStateWithLifecycle(
            initialValue = stringResource(R.string.summary_placeholder),
        )
+2 −2
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ object UserAspectRatioAppsPageProvider : SettingsPageProvider {
    @VisibleForTesting
    fun EntryItem() =
        Preference(object : PreferenceModel {
            override val title = stringResource(R.string.aspect_ratio_title)
            override val title = stringResource(R.string.aspect_ratio_experimental_title)
            override val summary = getSummary().toState()
            override val onClick = navigator(name)
        })
@@ -104,7 +104,7 @@ fun UserAspectRatioAppList(
    = { AppList() },
) {
    AppListPage(
        title = stringResource(R.string.aspect_ratio_title),
        title = stringResource(R.string.aspect_ratio_experimental_title),
        listModel = rememberContext(::UserAspectRatioAppListModel),
        appList = appList,
        header = {
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ class UserAspectRatioAppPreferenceTest {

        composeTestRule.onNode(
            hasTextExactly(
                context.getString(R.string.aspect_ratio_title),
                context.getString(R.string.aspect_ratio_experimental_title),
                context.getString(R.string.user_aspect_ratio_app_default)
            ),
        ).assertIsDisplayed().assertIsEnabled()
Loading