Merge "Animate taskbar background alpha and visibility alpha" into sc-dev am: 6d46fff269 am: dd1f1b0b08
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13438959 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ibbd7ca5ef7b54556a755c139aa90be50abcf68a0
This commit is contained in:
commit
85ca3077ed
18 files changed
+392
-11
No files matched your search
@@ -57,6 +57,7 @@ public abstract class LauncherState implements BaseState<LauncherState> {
|
||||
public static final int ALL_APPS_CONTENT = 1 << 4;
|
||||
public static final int VERTICAL_SWIPE_INDICATOR = 1 << 5;
|
||||
public static final int OVERVIEW_BUTTONS = 1 << 6;
|
||||
public static final int TASKBAR = 1 << 7;
|
||||
|
||||
/** Mask of all the items that are contained in the apps view. */
|
||||
public static final int APPS_VIEW_ITEM_MASK =
|
||||
@@ -186,7 +187,7 @@ public abstract class LauncherState implements BaseState<LauncherState> {
|
||||
}
|
||||
|
||||
public int getVisibleElements(Launcher launcher) {
|
||||
int flags = HOTSEAT_ICONS | VERTICAL_SWIPE_INDICATOR;
|
||||
int flags = HOTSEAT_ICONS | VERTICAL_SWIPE_INDICATOR | TASKBAR;
|
||||
if (!FeatureFlags.ENABLE_DEVICE_SEARCH.get()
|
||||
&& !launcher.getDeviceProfile().isVerticalBarLayout()) {
|
||||
flags |= HOTSEAT_SEARCH_BOX;
|
||||
|
||||
@@ -90,4 +90,9 @@ public class SpringLoadedState extends LauncherState {
|
||||
public float getWorkspaceScrimAlpha(Launcher launcher) {
|
||||
return 0.3f;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getVisibleElements(Launcher launcher) {
|
||||
return super.getVisibleElements(launcher) & ~TASKBAR;
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,8 @@ public class StateAnimationConfig {
|
||||
PLAY_ATOMIC_OVERVIEW_SCALE,
|
||||
PLAY_ATOMIC_OVERVIEW_PEEK,
|
||||
SKIP_OVERVIEW,
|
||||
SKIP_DEPTH_CONTROLLER
|
||||
SKIP_DEPTH_CONTROLLER,
|
||||
SKIP_TASKBAR,
|
||||
})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface AnimationFlags {}
|
||||
@@ -46,6 +47,7 @@ public class StateAnimationConfig {
|
||||
public static final int PLAY_ATOMIC_OVERVIEW_PEEK = 1 << 2;
|
||||
public static final int SKIP_OVERVIEW = 1 << 3;
|
||||
public static final int SKIP_DEPTH_CONTROLLER = 1 << 4;
|
||||
public static final int SKIP_TASKBAR = 1 << 5;
|
||||
|
||||
public long duration;
|
||||
public boolean userControlled;
|
||||
@@ -72,6 +74,7 @@ public class StateAnimationConfig {
|
||||
ANIM_OVERVIEW_MODAL,
|
||||
ANIM_DEPTH,
|
||||
ANIM_OVERVIEW_ACTIONS_FADE,
|
||||
ANIM_TASKBAR_FADE,
|
||||
})
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface AnimType {}
|
||||
@@ -91,8 +94,9 @@ public class StateAnimationConfig {
|
||||
public static final int ANIM_OVERVIEW_MODAL = 13;
|
||||
public static final int ANIM_DEPTH = 14;
|
||||
public static final int ANIM_OVERVIEW_ACTIONS_FADE = 15;
|
||||
public static final int ANIM_TASKBAR_FADE = 16;
|
||||
|
||||
private static final int ANIM_TYPES_COUNT = 16;
|
||||
private static final int ANIM_TYPES_COUNT = 17;
|
||||
|
||||
protected final Interpolator[] mInterpolators = new Interpolator[ANIM_TYPES_COUNT];
|
||||
|
||||
|
||||
Reference in new issue
Block a user