summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorTiger Huang <tigerhuang@google.com>2020-08-07 20:13:55 +0800
committerTiger Huang <tigerhuang@google.com>2020-08-19 16:13:25 +0000
commit444e8dc6ce224f87b4d062d697a6db5a62e11183 (patch)
tree7841de2c2f09cfadc0d01e0e90d4795a233342ec /tools/aapt2/java/JavaClassGenerator.cpp
parentaf90f3fe7e35fd638ded0a6573925cb62f068381 (diff)
Refine system bar position restoring
The previous logic restores the system bar as long as its insets source is visible. There can be a timing issue that if the user swipes to show transient bars while an immersive app just becomes the control target but the hide-bar info haven't sent to WM yet, WM will re-show the bar incorrectly. This CL uses the requested visibility and the behavior to decide if we should restore the postion and the visibility. This CL also refines and caches the arguments of showTransient. In this way, we don't have to create the array every time while invoking that method. Fix: 161247175 Test: atest InsetsPolicyTest Merged-In: Idef314dfe6625399b88b3dacb4c74c7071453497 Change-Id: Idef314dfe6625399b88b3dacb4c74c7071453497 (cherry picked from commit 533682ebb39456df26097753d1f5172bff0e3d5d)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions