diff options
| author | Andrii Kulian <akulian@google.com> | 2017-02-08 18:38:26 -0800 |
|---|---|---|
| committer | Andrii Kulian <akulian@google.com> | 2017-02-16 17:33:59 -0800 |
| commit | b047b8bd7e363081e91ba6cbc8d09cd355624584 (patch) | |
| tree | 0b15ed46761aadf8ac9fa23c2791322b06757952 /core/java/android/content/ContextWrapper.java | |
| parent | 7d8875a178973ad4a2e0a5ed5492770f773a02e8 (diff) | |
Report move to display for activities that handle config changes
When activity that is moved between displays handles all configuration
changes, it won't be restarted. This CL adds a callback to the client
to notify it about display change. Usually it will be followed by
onConfigurationChanged, except when configuration didn't actually change.
When activity is recreated, it won't receive onMovedToDisplay.
Bug: 34862802
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testOnMovedToDisplayCallback
Change-Id: I9a9501cab788623ada15a31efb53e4b2378639fe
Diffstat (limited to 'core/java/android/content/ContextWrapper.java')
| -rw-r--r-- | core/java/android/content/ContextWrapper.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/content/ContextWrapper.java b/core/java/android/content/ContextWrapper.java index 546bfc404d56..38cdbb4ef1b8 100644 --- a/core/java/android/content/ContextWrapper.java +++ b/core/java/android/content/ContextWrapper.java @@ -865,6 +865,14 @@ public class ContextWrapper extends Context { return mBase.getDisplay(); } + /** + * @hide + */ + @Override + public void updateDisplay(int displayId) { + mBase.updateDisplay(displayId); + } + @Override public Context createDeviceProtectedStorageContext() { return mBase.createDeviceProtectedStorageContext(); |
