Remove LauncherState.TASKBAR visible element

It's no longer used, so removing to cleanup code and reduce confusion

Test: no functional change
Fixes: 209512651
Change-Id: Ibd671bde7190df976b5365331731a55a9abdbb35
This commit is contained in:
Tony Wickham 2021-12-06 15:54:43 -08:00
parent 3d206ca917
commit 7af54403a3
4 changed files with 6 additions and 13 deletions

View File

@ -74,8 +74,7 @@ public class BackgroundAppState extends OverviewState {
return super.getVisibleElements(launcher) return super.getVisibleElements(launcher)
& ~OVERVIEW_ACTIONS & ~OVERVIEW_ACTIONS
& ~CLEAR_ALL_BUTTON & ~CLEAR_ALL_BUTTON
& ~VERTICAL_SWIPE_INDICATOR & ~VERTICAL_SWIPE_INDICATOR;
| TASKBAR;
} }
@Override @Override

View File

@ -53,6 +53,6 @@ public class QuickSwitchState extends BackgroundAppState {
@Override @Override
public int getVisibleElements(Launcher launcher) { public int getVisibleElements(Launcher launcher) {
return TASKBAR; return NONE;
} }
} }

View File

@ -57,10 +57,9 @@ public abstract class LauncherState implements BaseState<LauncherState> {
public static final int ALL_APPS_CONTENT = 1 << 1; public static final int ALL_APPS_CONTENT = 1 << 1;
public static final int VERTICAL_SWIPE_INDICATOR = 1 << 2; public static final int VERTICAL_SWIPE_INDICATOR = 1 << 2;
public static final int OVERVIEW_ACTIONS = 1 << 3; public static final int OVERVIEW_ACTIONS = 1 << 3;
public static final int TASKBAR = 1 << 4; public static final int CLEAR_ALL_BUTTON = 1 << 4;
public static final int CLEAR_ALL_BUTTON = 1 << 5; public static final int WORKSPACE_PAGE_INDICATOR = 1 << 5;
public static final int WORKSPACE_PAGE_INDICATOR = 1 << 6; public static final int SPLIT_PLACHOLDER_VIEW = 1 << 6;
public static final int SPLIT_PLACHOLDER_VIEW = 1 << 7;
// Flag indicating workspace has multiple pages visible. // Flag indicating workspace has multiple pages visible.
public static final int FLAG_MULTI_PAGE = BaseState.getFlag(0); public static final int FLAG_MULTI_PAGE = BaseState.getFlag(0);
@ -186,7 +185,7 @@ public abstract class LauncherState implements BaseState<LauncherState> {
} }
public int getVisibleElements(Launcher launcher) { public int getVisibleElements(Launcher launcher) {
return HOTSEAT_ICONS | WORKSPACE_PAGE_INDICATOR | VERTICAL_SWIPE_INDICATOR | TASKBAR; return HOTSEAT_ICONS | WORKSPACE_PAGE_INDICATOR | VERTICAL_SWIPE_INDICATOR;
} }
/** /**

View File

@ -90,9 +90,4 @@ public class SpringLoadedState extends LauncherState {
public float getWorkspaceBackgroundAlpha(Launcher launcher) { public float getWorkspaceBackgroundAlpha(Launcher launcher) {
return 0.2f; return 0.2f;
} }
@Override
public int getVisibleElements(Launcher launcher) {
return (super.getVisibleElements(launcher) | HOTSEAT_ICONS) & ~TASKBAR;
}
} }