Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 1377103004: Revert of Fix OSK to show when physical keyboard is detached on KK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8f4a789b4948d97dd3116cc81d800a7923d53049..b0937fe41f18dc6127c5bec6e8118bfc9a4a03ad 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,8 +664,7 @@
mEditable = Editable.Factory.getInstance().newEditable("");
Selection.setSelection(mEditable, 0);
mContainerViewObservers = new ObserverList<ContainerViewObserver>();
- // Deep copy newConfig so that we can notice the difference.
- mCurrentConfig = new Configuration(getContext().getResources().getConfiguration());
+ mCurrentConfig = getContext().getResources().getConfiguration();
}
/**
@@ -1618,8 +1617,7 @@
// onConfigurationChange and layout has to be changed in most case.
mContainerView.requestLayout();
} finally {
- // Deep copy newConfig so that we can notice the difference.
- mCurrentConfig = new Configuration(newConfig);
+ mCurrentConfig = newConfig;
TraceEvent.end("ContentViewCore.onConfigurationChanged");
}
}
« no previous file with comments | « no previous file | content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698