Android: Use createConfigurationContext() instead of applyOverrideConfiguration()
Attempting to roll appcompat support library, and it looks like the next version breaks applyOverrideConfiguration(). Specifically, AppCompatActivity.attachBaseContext() is now calling getResources(), which triggers an assert in applyOverrideConfiguration() since it cannot be called after a call to getResources(). I believe createConfigurationContext() should be functionally equivalent to applyOverrideConfiguration(). Bug: 1064727 Change-Id: I2cd1f4c348b7b8e3815ae33bc8708f79308d40b6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2157676 Commit-Queue: Andrew Grieve <agrieve@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#762128}
Showing
Please register or sign in to comment