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

Commit 3c93562d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove Taskbar and Taskbar EDU flags." into tm-dev am: c089baa6

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16991024

Change-Id: I4f50ad45bd7121ef013a76e732b89a0b2f8d3993
parents 05f85910 c089baa6
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -228,8 +228,7 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
     * Whether the taskbar education should be shown.
     */
    public boolean shouldShowEdu() {
        return FeatureFlags.ENABLE_TASKBAR_EDU.get()
                && !Utilities.IS_RUNNING_IN_TEST_HARNESS
        return !Utilities.IS_RUNNING_IN_TEST_HARNESS
                && !mLauncher.getOnboardingPrefs().getBoolean(OnboardingPrefs.TASKBAR_EDU_SEEN);
    }

@@ -237,10 +236,6 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
     * Manually ends the taskbar education flow.
     */
    public void hideEdu() {
        if (!FeatureFlags.ENABLE_TASKBAR_EDU.get()) {
            return;
        }

        mControllers.taskbarEduController.hideEdu();
    }

+1 −2
Original line number Diff line number Diff line
@@ -236,8 +236,7 @@ public class TaskbarManager implements DisplayController.DisplayInfoChangeListen
        DeviceProfile dp =
                mUserUnlocked ? LauncherAppState.getIDP(mContext).getDeviceProfile(mContext) : null;

        boolean isTaskBarEnabled =
                FeatureFlags.ENABLE_TASKBAR.get() && dp != null && dp.isTaskbarPresent;
        boolean isTaskBarEnabled = dp != null && dp.isTaskbarPresent;

        if (!isTaskBarEnabled) {
            SystemUiProxy.INSTANCE.get(mContext)
+1 −2
Original line number Diff line number Diff line
@@ -245,8 +245,7 @@ public class DeviceProfile {
        isTablet = info.isTablet(windowBounds);
        isPhone = !isTablet;
        isTwoPanels = isTablet && useTwoPanels;
        isTaskbarPresent = isTablet && ApiWrapper.TASKBAR_DRAWN_IN_PROCESS
                && FeatureFlags.ENABLE_TASKBAR.get();
        isTaskbarPresent = isTablet && ApiWrapper.TASKBAR_DRAWN_IN_PROCESS;

        // Some more constants.
        context = getContext(context, info, isVerticalBarLayout() || (isTablet && isLandscape)
+0 −6
Original line number Diff line number Diff line
@@ -197,12 +197,6 @@ public final class FeatureFlags {
            "ENABLE_APP_PREDICTIONS_WHILE_VISIBLE", true, "Allows app "
            + "predictions to be updated while they are visible to the user.");

    public static final BooleanFlag ENABLE_TASKBAR = getDebugFlag(
            "ENABLE_TASKBAR", true, "Allows a system Taskbar to be shown on larger devices.");

    public static final BooleanFlag ENABLE_TASKBAR_EDU = getDebugFlag("ENABLE_TASKBAR_EDU", true,
            "Enables showing taskbar education the first time an app is opened.");

    public static final BooleanFlag ENABLE_TASKBAR_POPUP_MENU = getDebugFlag(
            "ENABLE_TASKBAR_POPUP_MENU", true, "Enables long pressing taskbar icons to show the"
                    + " popup menu.");