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

Commit 1983e4fb authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Enable taskbar on phones when the flag is turned on

Bug: 348017501
Test: N/A
Flag: com.android.wm.shell.enable_taskbar_on_phones
Change-Id: I8f283609b24c49e4ecd37142b0d94e449d1dc118
parent b47bed0f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.launcher3.config;
import static com.android.launcher3.config.FeatureFlags.BooleanFlag.DISABLED;
import static com.android.launcher3.config.FeatureFlags.BooleanFlag.ENABLED;
import static com.android.wm.shell.Flags.enableTaskbarNavbarUnification;
import static com.android.wm.shell.Flags.enableTaskbarOnPhones;

import android.content.res.Resources;

@@ -143,7 +144,7 @@ public final class FeatureFlags {
            DISABLED, "Sends a notification whenever launcher encounters an uncaught exception.");

    public static final boolean ENABLE_TASKBAR_NAVBAR_UNIFICATION =
            enableTaskbarNavbarUnification() && !isPhone();
            enableTaskbarNavbarUnification() && (!isPhone() || enableTaskbarOnPhones());

    private static boolean isPhone() {
        final boolean isPhone;