mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
FeatureFlag: quick scrub is now quick switch
- Scale down current task and translate it to the left - Translate previous task in from the left - This is a toggle; quick switch again returns to the first task Currently this is implemented by repurposing onQuickScrub(progress) to update the positions of the first two pages. This makes tracking velocity a bit difficult; if we want to go down this path in the long run we should probably track velocity properly on MotionEvents. Change-Id: I4445b5f08b6e88e71cbb5e30b1f1d45c5f1edc68
This commit is contained in:
@@ -178,6 +178,14 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag
|
||||
@Override
|
||||
public ActivityOptions getActivityLaunchOptions(Launcher launcher, View v) {
|
||||
if (hasControlRemoteAppTransitionPermission()) {
|
||||
boolean fromRecents = mLauncher.getStateManager().getState().overviewUi
|
||||
&& findTaskViewToLaunch(launcher, v, null) != null;
|
||||
RecentsView recentsView = mLauncher.getOverviewPanel();
|
||||
if (fromRecents && recentsView.getQuickScrubController().isQuickSwitch()) {
|
||||
return ActivityOptions.makeCustomAnimation(mLauncher, R.anim.no_anim,
|
||||
R.anim.no_anim);
|
||||
}
|
||||
|
||||
RemoteAnimationRunnerCompat runner = new LauncherAnimationRunner(mHandler,
|
||||
true /* startAtFrontOfQueue */) {
|
||||
|
||||
@@ -218,8 +226,6 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag
|
||||
}
|
||||
};
|
||||
|
||||
boolean fromRecents = mLauncher.getStateManager().getState().overviewUi
|
||||
&& findTaskViewToLaunch(launcher, v, null) != null;
|
||||
int duration = fromRecents
|
||||
? RECENTS_LAUNCH_DURATION
|
||||
: APP_LAUNCH_DURATION;
|
||||
|
||||
Reference in New Issue
Block a user