Merge "Dispatch organized task info change after committing visibility" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b24386ba3e
@@ -4897,7 +4897,12 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
// dispatchTaskInfoChangedIfNeeded() right after ActivityRecord#setVisibility() can report
|
// dispatchTaskInfoChangedIfNeeded() right after ActivityRecord#setVisibility() can report
|
||||||
// the stale visible state, because the state will be updated after the app transition.
|
// the stale visible state, because the state will be updated after the app transition.
|
||||||
// So tries to report the actual visible state again where the state is changed.
|
// So tries to report the actual visible state again where the state is changed.
|
||||||
if (task != null) task.dispatchTaskInfoChangedIfNeeded(false /* force */);
|
if (!mTaskSupervisor.inActivityVisibilityUpdate()) {
|
||||||
|
final Task task = getOrganizedTask();
|
||||||
|
if (task != null) {
|
||||||
|
task.dispatchTaskInfoChangedIfNeeded(false /* force */);
|
||||||
|
}
|
||||||
|
}
|
||||||
ProtoLog.v(WM_DEBUG_APP_TRANSITIONS,
|
ProtoLog.v(WM_DEBUG_APP_TRANSITIONS,
|
||||||
"commitVisibility: %s: visible=%b mVisibleRequested=%b", this,
|
"commitVisibility: %s: visible=%b mVisibleRequested=%b", this,
|
||||||
isVisible(), mVisibleRequested);
|
isVisible(), mVisibleRequested);
|
||||||
|
|||||||
Reference in New Issue
Block a user