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

Commit 50864550 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Automerger Merge Worker
Browse files

Merge "Reduce the size of buttons in Global Actions Lite" into udc-dev am:...

Merge "Reduce the size of buttons in Global Actions Lite" into udc-dev am: 629884d3 am: 0ac3ef3d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23695623



Change-Id: I0bec0469296cfa009168dc50b964db45b610c0e3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 931acdf3 0ac3ef3d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -76,4 +76,10 @@
    <!-- Bouncer user switcher margins -->
    <dimen name="bouncer_user_switcher_view_mode_user_switcher_bottom_margin">0dp</dimen>
    <dimen name="bouncer_user_switcher_view_mode_view_flipper_bottom_margin">0dp</dimen>

    <!-- Power Menu Lite -->
    <!-- These values are for small screen landscape. For larger landscape screens, they are
         overlaid -->
    <dimen name="global_actions_button_size">72dp</dimen>
    <dimen name="global_actions_button_padding">26dp</dimen>
</resources>
+4 −0
Original line number Diff line number Diff line
@@ -18,4 +18,8 @@
    <!-- Lock pattern view size, align sysui biometric_auth_pattern_view_size -->
    <dimen name="biometric_auth_pattern_view_size">248dp</dimen>
    <dimen name="biometric_auth_pattern_view_max_size">348dp</dimen>

    <!-- Power Menu Lite -->
    <dimen name="global_actions_button_size">96dp</dimen>
    <dimen name="global_actions_button_padding">38dp</dimen>
</resources>
 No newline at end of file
+5 −1
Original line number Diff line number Diff line
@@ -250,6 +250,7 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
    private int mDialogPressDelay = DIALOG_PRESS_DELAY; // ms
    protected Handler mMainHandler;
    private int mSmallestScreenWidthDp;
    private int mOrientation;
    private final Optional<CentralSurfaces> mCentralSurfacesOptional;
    private final ShadeController mShadeController;
    private final KeyguardUpdateMonitor mKeyguardUpdateMonitor;
@@ -394,6 +395,7 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
        mRingerModeTracker = ringerModeTracker;
        mMainHandler = handler;
        mSmallestScreenWidthDp = resources.getConfiguration().smallestScreenWidthDp;
        mOrientation = resources.getConfiguration().orientation;
        mCentralSurfacesOptional = centralSurfacesOptional;
        mShadeController = shadeController;
        mKeyguardUpdateMonitor = keyguardUpdateMonitor;
@@ -750,8 +752,10 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
    @Override
    public void onConfigChanged(Configuration newConfig) {
        if (mDialog != null && mDialog.isShowing()
                && (newConfig.smallestScreenWidthDp != mSmallestScreenWidthDp)) {
                && (newConfig.smallestScreenWidthDp != mSmallestScreenWidthDp
                || newConfig.orientation != mOrientation)) {
            mSmallestScreenWidthDp = newConfig.smallestScreenWidthDp;
            mOrientation = newConfig.orientation;
            mDialog.refreshDialog();
        }
    }