summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorNaomi Musgrave <nmusgrave@google.com>2021-04-19 22:02:36 +0100
committerNaomi Musgrave <nmusgrave@google.com>2021-04-20 19:41:36 +0100
commitc95c242f023b43dd0bd5ac62eeae040f6db54731 (patch)
treec15b3293cd73c4869d4b7e3115dd128fa6612106 /tools/aapt2/java/JavaClassGenerator.cpp
parent0cd1de22269c7be1de3ea17509f04a51486eece0 (diff)
Sandbox only if an activity may enter size compat mode.
The check shouldCreateCompatDisplayInsets will catch any apps that are eligible for size compat mode, and apply sandboxing to them. If an app is in letterbox only - and is never eligible for size compat mode- then the app handles resizing and multiwindow mode. We can assume, since it has explicitly declared it is resizable, that it will use the Display size APIs correctly. This decision is consistent with test results, as well, which only shows apps in size compat mode benefiting from sandboxing. Bug: 185456980 Test: atest WmTests:SizeCompatTests Change-Id: I4b66454b3515738554c63cffe73e2f0500889cf6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions