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

Commit 61872cc5 authored by Zoey Chen's avatar Zoey Chen
Browse files

[Settings] Add override for getting parent locale

Bug: 291545021
Test: manual
Flag: EXEMPT bugfix
Change-Id: I729b9f8736d06ff1d02828a8b625195fb0192f09
parent 2962f79d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ public class LocalePickerWithRegion extends ListFragment implements SearchView.O
         * @param locale    the locale picked.
         */
        void onLocaleSelected(LocaleStore.LocaleInfo locale);
        default void onParentLocaleSelected(LocaleStore.LocaleInfo locale) {}
    }

    /**
@@ -292,7 +293,7 @@ public class LocalePickerWithRegion extends ListFragment implements SearchView.O
                        mListener, locale, mTranslatedOnly /* translate only */,
                        mOnActionExpandListener, this.mLocalePickerCollector);
            }

            mListener.onParentLocaleSelected(locale);
            if (selector != null) {
                getFragmentManager().beginTransaction()
                        .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)