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

Commit dc862b46 authored by hee.youn's avatar hee.youn Committed by hee youn
Browse files

[Settings] modify to use LocaleHelper on AppLocaleDetails

modify to unifying display name of locale because there is difference between summary and AppLanguageList

Bug: 260625719
Test: run Settings > General > App Language and test summary and list

Change-Id: I62b91a33632251e810d200d56d7274e216568c77
parent 39d6e925
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ import android.widget.TextView;

import androidx.preference.Preference;

import com.android.internal.app.LocaleHelper;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
import com.android.settings.Utils;
@@ -213,7 +214,7 @@ public class AppLocaleDetails extends SettingsPreferenceFragment {
        if (appLocale == null) {
            return context.getString(R.string.preference_of_system_locale_summary);
        } else {
            return appLocale.getDisplayName(appLocale);
            return LocaleHelper.getDisplayName(appLocale, appLocale, true);
        }
    }
}