summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authortomnatan <tomnatan@google.com>2021-11-09 18:01:03 +0000
committertomnatan <tomnatan@google.com>2021-11-09 18:17:58 +0000
commite61400c6d6120c0b676fd8c2ba6537a7af00abca (patch)
treef01e9c7b03a8a9df267a5d6a31bbac23a58a454d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent539da553b643479a6cdba95567d96cd3b01e2103 (diff)
Fix issue where NOT_VISIBLE state is sometimes not logged
This happens because ActivityMetricsLogger#notifyActivityRemoved is sometimes called before ActivityMetricsLogger#logAppCompatState is called from ActivityRecord#setVisibleRequested. The solution is to keep the correct lastLoggedState and just mark the lastLoggedActivity as null when the activity is removed. In addition, avoid logging the same state twice when an activity becomes invisible while there is another visible activity with the same state for the same package UID. Note that these changes will be tested in a CTS test that will be added in a follow up. Fix: 203417779 Fix: 203506108 Test: atest WmTests:SizeCompatTests Change-Id: I056584fc234a605bc0d39ac24f430e969ffc86ee
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions