Merge "Prevents the binder call fail from freeze when send app visibility." into tm-dev

This commit is contained in:
Wei Sheng Shih
2022-04-08 00:36:54 +00:00
committed by Android (Google) Code Review
3 changed files with 5 additions and 0 deletions

View File

@@ -1403,6 +1403,9 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
+ "activityRecord=%s", this);
return false;
}
if (onTop) {
app.addToPendingTop();
}
try {
ProtoLog.v(WM_DEBUG_STATES, "Sending position change to %s, onTop: %b",
this, onTop);

View File

@@ -1232,6 +1232,7 @@ class TaskFragment extends WindowContainer<WindowContainer> {
// This activity is now becoming visible.
if (!next.mVisibleRequested || next.stopped || lastActivityTranslucent) {
next.app.addToPendingTop();
next.setVisibility(true);
}

View File

@@ -3519,6 +3519,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
"Setting visibility of " + this + ": " + clientVisible);
mClient.dispatchAppVisibility(clientVisible);
} catch (RemoteException e) {
Slog.w(TAG, "Exception thrown during dispatchAppVisibility " + this, e);
}
}