Merge "Updating the cached resource configuration if ViewRoot is perserved" into tm-qpr-dev

This commit is contained in:
Louis Chang
2022-10-05 14:05:38 +00:00
committed by Android (Google) Code Review

View File

@@ -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() {