summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2016-07-28 16:30:10 -0700
committerChet Haase <chet@google.com>2016-08-27 16:44:10 +0000
commit00c4f7ba652a817f208fb761feb8c6a063da848a (patch)
tree09268075f3bd695ddff961011884d6828ee7301c /tools/aapt2/java/JavaClassGenerator.cpp
parentc2b9d558186f01716f643e1b095086fd608802d7 (diff)
Force AlertDialogLayout to have gravity start|top
AlertDialogLayout overrides LinearLayout#onMeasure but not onLayout, meaning that some state initialized for the handling of gravity may not be valid in LinearLayout#onLayout. As this is an internal class never used directly by apps, explicitly specify the default gravity of start|top in @layout/alert_dialog_material to avoid this bug. Apps that do things like set gravity in their theme (for whatever reason) could otherwise change its behavior. Bug 30494039 Change-Id: I71a8be1829a7fe24cf7714a3bd5ed732f85eb887 (cherry picked from commit 39e0bf23f50a3de112b232321c5e0a1013af70c7)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions