diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index e4caa385bc9b5..0e5016bbd3048 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -1099,6 +1099,10 @@ public final class ViewRootImpl implements ViewParent, mInputQueueCallback.onInputQueueCreated(mInputQueue); } } + + // Update the last resource config in case the resource configuration was changed while + // activity relaunched. + mLastConfigurationFromResources.setTo(getConfiguration()); } private Configuration getConfiguration() {