summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2016-05-04 07:26:02 -0700
committerChet Haase <chet@google.com>2016-05-04 18:14:46 +0000
commitd86fb2ce37b6b812992a28e7210a82f169d1cdcf (patch)
treecb21f0d6fed7773cbf55001d4d06671b3cde5d10 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9a2384a7a6ad4ff630f125e844f7b202ec3cc649 (diff)
Force second measure pass when there is a configuration change
It's possible for a call to updateConfiguration() to happen in the middle of performTraversals(), after the measure phase has happened, but before the layout phase. During the configuration call, it's possible for views to have requestLayout() called on them. This can result in the request flag not getting cleared, because views that have had layout requested, but which have not yet been measured, may not be told to layout. The correct flow should be that any code path causing requestLayout() (which could be anything that calls out to user/app code) should happen before the measure phase (or cause a second measure to occur). For now, causing the second measure to occur is a low-risk simple change that fixes the immediate problem. Issue #28152259 Calling requestLayout from inside View.onConfigurationChanged can cause problems Change-Id: I3b532eeacc3784d8d21193d01ddd7fa15ac0684e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions