Merge "Remove Taskbar and Taskbar EDU flags." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c089baa668
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user