Merge "Fix issue where NOT_VISIBLE state is sometimes not logged" into sc-v2-dev am: 2956f1d302
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16075535 Change-Id: I7dca8695b4fca42968addf400dda16024d0275b6
This commit is contained in:
@@ -4694,6 +4694,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
if (app != null) {
|
if (app != null) {
|
||||||
mTaskSupervisor.onProcessActivityStateChanged(app, false /* forceBatch */);
|
mTaskSupervisor.onProcessActivityStateChanged(app, false /* forceBatch */);
|
||||||
}
|
}
|
||||||
|
logAppCompatState();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -4721,7 +4722,6 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
ActivityTaskManagerService.LAYOUT_REASON_VISIBILITY_CHANGED);
|
ActivityTaskManagerService.LAYOUT_REASON_VISIBILITY_CHANGED);
|
||||||
mTaskSupervisor.getActivityMetricsLogger().notifyVisibilityChanged(this);
|
mTaskSupervisor.getActivityMetricsLogger().notifyVisibilityChanged(this);
|
||||||
mTaskSupervisor.mAppVisibilitiesChangedSinceLastPause = true;
|
mTaskSupervisor.mAppVisibilitiesChangedSinceLastPause = true;
|
||||||
logAppCompatState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
|
|||||||
Reference in New Issue
Block a user