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

Commit 471709ae authored by Sumir Kataria's avatar Sumir Kataria
Browse files

Don't allow reflection on ViewConfiguration#sHasPermanentMenuKey.

This seems to be used to force action bar to show an overflow
menu.  Perhaps this functionality needs to exist in Toolbar,
but after discussion with the team, we have decided it does not
need to be supported in this fashion any longer.

Bug: 123768915
Test: No API or behavior changes
Change-Id: I8e311133faec599f4dee635e261507521318260e
parent 912ca402
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Point;
import android.os.Build;
import android.os.RemoteException;
import android.provider.Settings;
import android.util.DisplayMetrics;
@@ -314,7 +315,7 @@ public class ViewConfiguration {
    private final float mHorizontalScrollFactor;
    private final boolean mShowMenuShortcutsWhenKeyboardPresent;

    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 123768915)
    private boolean sHasPermanentMenuKey;
    @UnsupportedAppUsage
    private boolean sHasPermanentMenuKeySet;