| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| index b0937fe41f18dc6127c5bec6e8118bfc9a4a03ad..8f4a789b4948d97dd3116cc81d800a7923d53049 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| @@ -664,7 +664,8 @@ public class ContentViewCore implements
|
| mEditable = Editable.Factory.getInstance().newEditable("");
|
| Selection.setSelection(mEditable, 0);
|
| mContainerViewObservers = new ObserverList<ContainerViewObserver>();
|
| - mCurrentConfig = getContext().getResources().getConfiguration();
|
| + // Deep copy newConfig so that we can notice the difference.
|
| + mCurrentConfig = new Configuration(getContext().getResources().getConfiguration());
|
| }
|
|
|
| /**
|
| @@ -1617,7 +1618,8 @@ public class ContentViewCore implements
|
| // onConfigurationChange and layout has to be changed in most case.
|
| mContainerView.requestLayout();
|
| } finally {
|
| - mCurrentConfig = newConfig;
|
| + // Deep copy newConfig so that we can notice the difference.
|
| + mCurrentConfig = new Configuration(newConfig);
|
| TraceEvent.end("ContentViewCore.onConfigurationChanged");
|
| }
|
| }
|
|
|