summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorarangelov <arangelov@google.com>2020-03-11 18:33:26 +0000
committerarangelov <arangelov@google.com>2020-03-12 15:08:43 +0000
commita30787b8fa76bd81600c8ff3a18fa2090d660e58 (patch)
tree1dbc8a0b2e12f7b7cbbf3f47c51c2b234c051733 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent5527ace031ddbfce9bb52e767552c830ff4277af (diff)
When calculating share sheet height, account for empty state screens.
As we calculate the share sheet height only for the current profile, there is a rare case when the current profile may have no results. For that case, we need to adjust the share sheet offset so that it includes the empty state screen height. In addition, this CL also does an early return if we are in the non-main profile (e.g. personal tab in work profile) to prevent the height from being recalculated upon tab switch. Fixes: 150939637 Test: manual Change-Id: Ia465f53d7a2006e1b7c67ad1e95729ed79e2c3a0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions