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

Commit 97821a73 authored by tom hsu's avatar tom hsu
Browse files

[Regional preference] Make prerference and fragment title are same.

Bug: b/272440256
Test: Manual test passed
Change-Id: I0d5ce8f55977ce6fc300b28501f98f4860031380
parent db7e7d09
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.util.Log;

import androidx.annotation.VisibleForTesting;

import com.android.internal.app.LocaleHelper;
import com.android.settings.R;
import com.android.settings.dashboard.DashboardFragment;
import com.android.settingslib.core.AbstractPreferenceController;
@@ -53,9 +54,8 @@ public class NumberingPreferencesFragment extends DashboardFragment {
                Log.w(getLogTag(), "No selected language.");
                return "";
            }
            return Locale.forLanguageTag(selectedLanguage)
                    .stripExtensions()
                    .getDisplayName(Locale.forLanguageTag(selectedLanguage));
            Locale locale = Locale.forLanguageTag(selectedLanguage);
            return LocaleHelper.getDisplayName(locale.stripExtensions(), locale, true);
        }
        Log.w(getLogTag(), "Incorrect option : " + option);
        return "";