Merge "Resume stopped preserved window when relaunching visible activity" into udc-dev
This commit is contained in:
@@ -1135,6 +1135,10 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
updateLastConfigurationFromResources(getConfiguration());
|
updateLastConfigurationFromResources(getConfiguration());
|
||||||
// Make sure to report the completion of draw for relaunch with preserved window.
|
// Make sure to report the completion of draw for relaunch with preserved window.
|
||||||
reportNextDraw("rebuilt");
|
reportNextDraw("rebuilt");
|
||||||
|
// Make sure to resume this root view when relaunching its host activity which was stopped.
|
||||||
|
if (mStopped && getHostVisibility() != View.GONE) {
|
||||||
|
setWindowStopped(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Configuration getConfiguration() {
|
private Configuration getConfiguration() {
|
||||||
|
|||||||
Reference in New Issue
Block a user