Merge "Fix issue where NOT_VISIBLE state is sometimes not logged" into sc-v2-dev am: 2956f1d302 am: e4545c9f80

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16075535

Change-Id: Icc2b36aaa4d7cbc90a087475449de57e79057b9f
This commit is contained in:
Tom Natan
2021-10-19 10:41:23 +00:00
committed by Automerger Merge Worker

View File

@@ -4628,6 +4628,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
if (app != null) {
mTaskSupervisor.onProcessActivityStateChanged(app, false /* forceBatch */);
}
logAppCompatState();
}
/**
@@ -4654,7 +4655,6 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
ActivityTaskManagerService.LAYOUT_REASON_VISIBILITY_CHANGED);
mTaskSupervisor.getActivityMetricsLogger().notifyVisibilityChanged(this);
mTaskSupervisor.mAppVisibilitiesChangedSinceLastPause = true;
logAppCompatState();
}
@VisibleForTesting