mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
UI fixes to All apps pull up work
b/28917826 - nav bar change to light when top of the all apps container passes y mid point of the status bar - apps search edit box change when top of the all apps passes the bottom of nav bar - Restrict pull up to work only if the ACTION_DOWN event started from the hotseat. - Landscape: reverted old padding and margin. Only the interaction is different. - Tuning of the motion spec - Animation duration respects fling speed more agressively. - and many more small bugs... Change-Id: Icde4093c41eeab8c9c6d9dc8b7d57adc3b171349
This commit is contained in:
@@ -249,10 +249,9 @@ public class LauncherStateTransitionAnimation {
|
||||
cancelAnimation();
|
||||
|
||||
final View contentView = toView.getContentView();
|
||||
|
||||
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
|
||||
animated, initialized, animation, revealDuration, layerViews);
|
||||
if (!animated || !initialized) {
|
||||
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
|
||||
animated, initialized, animation, revealDuration, layerViews);
|
||||
|
||||
toView.setTranslationX(0.0f);
|
||||
toView.setTranslationY(0.0f);
|
||||
@@ -276,9 +275,6 @@ public class LauncherStateTransitionAnimation {
|
||||
return null;
|
||||
}
|
||||
if (animType == CIRCULAR_REVEAL) {
|
||||
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
|
||||
animated, initialized, animation, revealDuration, layerViews);
|
||||
|
||||
// Setup the reveal view animation
|
||||
final View revealView = toView.getRevealView();
|
||||
|
||||
@@ -425,8 +421,6 @@ public class LauncherStateTransitionAnimation {
|
||||
}
|
||||
});
|
||||
mAllAppsController.animateToAllApps(animation, revealDuration);
|
||||
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
|
||||
animated, initialized, animation, revealDuration, layerViews);
|
||||
|
||||
dispatchOnLauncherTransitionPrepare(fromView, animated, false);
|
||||
dispatchOnLauncherTransitionPrepare(toView, animated, false);
|
||||
@@ -675,9 +669,9 @@ public class LauncherStateTransitionAnimation {
|
||||
|
||||
boolean multiplePagesVisible = toWorkspaceState.hasMultipleVisiblePages;
|
||||
|
||||
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
|
||||
animated, initialized, animation, revealDuration, layerViews);
|
||||
if (!animated || !initialized) {
|
||||
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
|
||||
animated, initialized, animation, revealDuration, layerViews);
|
||||
if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) {
|
||||
mAllAppsController.finishPullDown();
|
||||
}
|
||||
@@ -694,12 +688,9 @@ public class LauncherStateTransitionAnimation {
|
||||
if (onCompleteRunnable != null) {
|
||||
onCompleteRunnable.run();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
if (animType == CIRCULAR_REVEAL) {
|
||||
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
|
||||
animated, initialized, animation, revealDuration, layerViews);
|
||||
final View revealView = fromView.getRevealView();
|
||||
final View contentView = fromView.getContentView();
|
||||
|
||||
@@ -880,8 +871,6 @@ public class LauncherStateTransitionAnimation {
|
||||
|
||||
});
|
||||
mAllAppsController.animateToWorkspace(animation, revealDuration);
|
||||
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
|
||||
animated, initialized, animation, revealDuration, layerViews);
|
||||
|
||||
// Dispatch the prepare transition signal
|
||||
dispatchOnLauncherTransitionPrepare(fromView, animated, false);
|
||||
|
||||
Reference in New Issue
Block a user