Merge "Fix issue where NOT_VISIBLE state is sometimes not logged" into sc-v2-dev

This commit is contained in:
Tom Natan
2021-10-19 10:17:26 +00:00
committed by Android (Google) Code Review

View File

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