Merge "Prevent repeatedly resuming/pausing activities in split" into sc-v2-dev
This commit is contained in:
@@ -730,11 +730,14 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
|
|||||||
canUpdate = true;
|
canUpdate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compare the z-order of ActivityStacks if both activities landed on same display.
|
// Update the topmost activity if the activity has higher z-order than the current
|
||||||
if (display == topDisplay
|
// top-resumed activity.
|
||||||
&& mPreQTopResumedActivity.getRootTask().compareTo(
|
if (!canUpdate) {
|
||||||
activity.getRootTask()) <= 0) {
|
final ActivityRecord ar = topDisplay.getActivity(r -> r == activity,
|
||||||
canUpdate = true;
|
true /* traverseTopToBottom */, mPreQTopResumedActivity);
|
||||||
|
if (ar != null && ar != mPreQTopResumedActivity) {
|
||||||
|
canUpdate = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canUpdate) {
|
if (canUpdate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user