Merge "Relaunching activity to PAUSE state" into udc-qpr-dev

This commit is contained in:
Louis Chang
2023-05-18 00:55:37 +00:00
committed by Android (Google) Code Review

View File

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