summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2018-05-28 18:55:38 +0200
committerAdrian Roos <roosa@google.com>2018-05-29 15:25:05 +0000
commit24be34dcc9611458cd26d90bdf943938e159c0bc (patch)
treeb931eb487fe52e45fa19855de119b46223228e4a /tools/aapt2/java/JavaClassGenerator.cpp
parent6de8729657263d0dba112573298055d9396027d6 (diff)
WM: Make maxAspectRatio work with display cutouts
Fixes an issue where the max aspect ratio was not correctly calculated if there was a display cutout. The issue was that the max aspect ratio logic assumed that nothing ever applies a top inset (n.b. the status bar is ignored for this inset). This is no longer true with display cutouts, which cut into the app bounds from the top. To make things work, we now need to grow the bounds for the app window by that inset. Later on, the top part will be trimmed again for the bounds reported to the app. Note that we cannot outright discard the top part, or colored bars would cease to work. Change-Id: I53925196a6a41736fc4748b12bbc3b8a9b0d174b Fixes: 80248462 Test: atest AspectRatioTests
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions