Merge "Relaunching activity to PAUSE state" into udc-qpr-dev am: 1d0fcb0f8d am: 94bffa7396

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23276937

Change-Id: I761d78b251f45793db18abb2f4ec982d18a0c1e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Louis Chang
2023-05-18 02:07:31 +00:00
committed by Automerger Merge Worker

View File

@@ -193,8 +193,8 @@ public class TransactionExecutorHelper {
switch (prevState) {
// TODO(lifecycler): Extend to support all possible states.
case ON_START:
lifecycleItem = StartActivityItem.obtain(null /* activityOptions */);
break;
// Fall through to return the PAUSE item to ensure the activity is properly
// resumed while relaunching.
case ON_PAUSE:
lifecycleItem = PauseActivityItem.obtain();
break;