OSDN Git Service

Make sure to apply latest configuration to resources
authorAndrii Kulian <akulian@google.com>
Tue, 19 Jul 2016 02:15:56 +0000 (19:15 -0700)
committerAndrii Kulian <akulian@google.com>
Thu, 21 Jul 2016 20:55:14 +0000 (13:55 -0700)
commit3b3c914e62db9e5e5e57930321cef257f57c73ed
tree8044f8d0279ab53fb4e904c7554331ec4f1af823
parentd2b30510c26661c1b96ab06cd4a770c90ce8d128
Make sure to apply latest configuration to resources

When app is transferred from split-screen mode to fullscreen
and the app doesn't handle configuration change, relaunch is
scheduled with non-empty override config corresponding to
fullscreen size. This override config is then used in instance
of DisplayAdjustments and in size/metrics calculations in
corresponding methods of Display class. To obtain correct values
in fullscreen mode override config should be empty.
Configuration change that follows relaunch has correct (empty)
override config, but it is not really applied for resources
because final config matched current activity config.

Bug: 30185335
Change-Id: I95fb69e0c229c2c6b0c1cd79e9d60556de579ae4
core/java/android/app/ActivityThread.java
core/java/android/app/ResourcesManager.java