diff options
author | jorgegil@google.com <jorgegil@google.com> | 2021-02-03 14:48:37 -0800 |
---|---|---|
committer | jorgegil@google.com <jorgegil@google.com> | 2021-02-03 14:52:35 -0800 |
commit | 42e039cd6a37b20fc99fdedaadfafcceea050736 (patch) | |
tree | 1a3337d40d95a717c9d1dbe1ba98785c42588a7b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | bf7df8a8a361f03e745f20a9d92cd8f2608af6d8 (diff) |
Run alignment logic of menu icons when the menu is created
The algorithm's icon arrangement logic was previously ran in
onBoundsChange, which could cause the icons to be misaligned
the very first time the menu is shown after being created.
This change ensures that the algorithm does an initial run
when the menu is first created.
Bug: 178708863
Test: manual - open YT PIP, tap to see menu, see the gear
icon is aligned to the top-start corner
Change-Id: I2cb53578db897af62be7ebd3ed40946e16606568
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions