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

Commit 8f6e3371 authored by Brian Isganitis's avatar Brian Isganitis
Browse files

Use phone handlebar size for tiny taskbar.

Flag: com.android.wm.shell.enable_tiny_taskbar
Test: Manual
Bug: 341784466
Change-Id: I8dbe04e221ada4d01f9525f62a257a1d983f86f0
parent 92b73a4f
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
                }
            )
    }