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

Commit 854722dc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Dialer: The menu item not change to RTL mode"

parents 9ba72e69 32a440c7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -94,6 +94,7 @@ import com.android.phone.common.dialpad.DialpadView;
import com.google.common.annotations.VisibleForTesting;

import java.util.HashSet;
import java.util.Locale;

import static com.android.internal.telephony.PhoneConstants.SUBSCRIPTION_KEY;

@@ -922,6 +923,7 @@ public class DialpadFragment extends AnalyticsFragment
     * @param invoker the View that invoked the options menu, to act as an anchor location.
     */
    private PopupMenu buildOptionsMenu(View invoker) {
        invoker.setLayoutDirection(TextUtils.getLayoutDirectionFromLocale(Locale.getDefault()));
        final PopupMenu popupMenu = new PopupMenu(getActivity(), invoker) {
            @Override
            public void show() {