summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorarangelov <arangelov@google.com>2020-03-05 22:24:13 +0000
committerAntoan Angelov <arangelov@google.com>2020-03-06 15:34:34 +0000
commit4c0513d8c77bd85dee791cbc1f22ee136f758e33 (patch)
treec2b2b13e3c0889f6f84630127faf3ee92b984406 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentfff2d76ccb057bf676e1184a8c83d08e4c7b7a9a (diff)
Prevent intent resolver from changing height when no app targets
If we select the inactive tab, and there are no resolved targets, the intent resolver changes its height for a few frames. This is because first we show and reload the list view as we switch to the other, and then in onPostListReady we show the empty state screen for no apps available. There are few frames between these two events, when the list view has a height of 0. That's when the ResolverViewPager recalculates its height and thus reduces the intent resolver height. Then as the empty state screen is shown, the proper intent resolver height is restored. The fix is to move the showListView call to onPostListReady. Test: manual Fixes: 150888674 Change-Id: I685568e183bbd5708242e1228195ec6b09023272
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions