Loading packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +16 −0 Original line number Diff line number Diff line Loading @@ -404,6 +404,17 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD // Notify of the next draw mRecentsView.getViewTreeObserver().addOnPreDrawListener(mRecentsDrawnEventListener); // If Recents was restarted, then it should complete the enter animation with partially // reset launch state with dock, app and home set to false Object isRelaunching = getLastNonConfigurationInstance(); if (isRelaunching != null && isRelaunching instanceof Boolean && (boolean) isRelaunching) { RecentsActivityLaunchState launchState = Recents.getConfiguration().getLaunchState(); launchState.launchedViaDockGesture = false; launchState.launchedFromApp = false; launchState.launchedFromHome = false; onEnterAnimationComplete(); } } @Override Loading Loading @@ -508,6 +519,11 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); } @Override public Object onRetainNonConfigurationInstance() { return true; } @Override protected void onPause() { super.onPause(); Loading Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +16 −0 Original line number Diff line number Diff line Loading @@ -404,6 +404,17 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD // Notify of the next draw mRecentsView.getViewTreeObserver().addOnPreDrawListener(mRecentsDrawnEventListener); // If Recents was restarted, then it should complete the enter animation with partially // reset launch state with dock, app and home set to false Object isRelaunching = getLastNonConfigurationInstance(); if (isRelaunching != null && isRelaunching instanceof Boolean && (boolean) isRelaunching) { RecentsActivityLaunchState launchState = Recents.getConfiguration().getLaunchState(); launchState.launchedViaDockGesture = false; launchState.launchedFromApp = false; launchState.launchedFromHome = false; onEnterAnimationComplete(); } } @Override Loading Loading @@ -508,6 +519,11 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD EventBus.getDefault().send(new EnterRecentsWindowAnimationCompletedEvent()); } @Override public Object onRetainNonConfigurationInstance() { return true; } @Override protected void onPause() { super.onPause(); Loading