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

Commit 1b973c06 authored by Brian Isganitis's avatar Brian Isganitis Committed by Android (Google) Code Review
Browse files

Merge "Use phone handlebar size for tiny taskbar." into main

parents e25ce33a 8f6e3371
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ public class StashedHandleViewController implements TaskbarControllers.LoggableT
        mControllers = controllers;
        DeviceProfile deviceProfile = mActivity.getDeviceProfile();
        Resources resources = mActivity.getResources();
        if (mActivity.isPhoneGestureNavMode()) {
        if (mActivity.isPhoneGestureNavMode() || mActivity.isTinyTaskbar()) {
            mTaskbarSize = resources.getDimensionPixelSize(R.dimen.taskbar_phone_size);
            mStashedHandleWidth =
                    resources.getDimensionPixelSize(R.dimen.taskbar_stashed_small_screen);
+5 −2
Original line number Diff line number Diff line
@@ -97,8 +97,11 @@ class TaskbarBackgroundRenderer(private val context: TaskbarActivityContext) {
    fun updateStashedHandleWidth(context: TaskbarActivityContext, res: Resources) {
        stashedHandleWidth =
            res.getDimensionPixelSize(
                if (context.isPhoneMode) R.dimen.taskbar_stashed_small_screen
                else R.dimen.taskbar_stashed_handle_width
                if (context.isPhoneMode || context.isTinyTaskbar) {
                    R.dimen.taskbar_stashed_small_screen
                } else {
                    R.dimen.taskbar_stashed_handle_width
                }
            )
    }