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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 1937233002: aw: Fix activityWrapsContext condition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 68f77eba4e6f5e17e1779ebce8ad6891628d0e5d..164f6dbe612b52972f739ad6a050fdfcdbf6d3eb 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -976,11 +976,11 @@ public class AwContents implements SmartClipProvider,
boolean contextWrapsActivity = activityFromContext(context) != null;
if (contextWrapsActivity) {
- wrapper = new WindowAndroidWrapper(new WindowAndroid(context));
- } else {
final boolean listenToActivityState = false;
wrapper = new WindowAndroidWrapper(
new ActivityWindowAndroid(context, listenToActivityState));
+ } else {
+ wrapper = new WindowAndroidWrapper(new WindowAndroid(context));
}
sContextWindowMap.put(context, wrapper);
return wrapper;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698