Adding a utility class to simplify main process initialization.

Change-Id: I796cf758d2a25cf8fd5f9a9b78a7977fd54ca451
This commit is contained in:
Sunny Goyal
2018-02-09 10:57:12 -08:00
parent a0693d6366
commit 66f2b35320
7 changed files with 49 additions and 14 deletions

View File

@@ -595,8 +595,9 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag
Runnable finishedCallback) {
Handler handler = mLauncher.getWindow().getDecorView().getHandler();
postAtFrontOfQueueAsynchronously(handler, () -> {
if ((Utilities.getPrefs(mLauncher).getBoolean("pref_use_screenshot_animation",
true) && mLauncher.isInState(LauncherState.OVERVIEW))
if ((Utilities.getPrefs(mLauncher)
.getBoolean("pref_use_screenshot_for_swipe_up", false)
&& mLauncher.isInState(LauncherState.OVERVIEW))
|| !isLauncherInSetOfOpeningTargets(targets)) {
// We use a separate transition for Overview mode. And we can skip the
// animation in cases where Launcher is not in the set of opening targets.