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

Unified Diff: shell/android/apk/src/org/chromium/mojo/shell/Keyboard.java

Issue 1098243003: java libraries: Fix warnings in eclipse. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « shell/BUILD.gn ('k') | sky/apk/demo/org/domokit/sky/demo/SkyDemoApplication.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/apk/src/org/chromium/mojo/shell/Keyboard.java
diff --git a/shell/android/apk/src/org/chromium/mojo/shell/Keyboard.java b/shell/android/apk/src/org/chromium/mojo/shell/Keyboard.java
index 2ee07dab45024ddfed6d9ebc88829b7dd552174d..04d46712b7153e473320c93b6b46b76f44d6f408 100644
--- a/shell/android/apk/src/org/chromium/mojo/shell/Keyboard.java
+++ b/shell/android/apk/src/org/chromium/mojo/shell/Keyboard.java
@@ -16,6 +16,7 @@ import org.chromium.mojo.system.Core;
import org.chromium.mojo.system.MessagePipeHandle;
import org.chromium.mojo.system.UntypedHandle;
import org.chromium.mojo.system.impl.CoreImpl;
+import org.chromium.mojom.keyboard.KeyboardService;
/**
* Interaction with the keyboard.
@@ -28,7 +29,9 @@ public class Keyboard {
UntypedHandle keyboardRequestHandle = core.acquireNativeHandle(keyboardRequestHandleValue);
MessagePipeHandle keyboardRequest = keyboardRequestHandle.toMessagePipeHandle();
View v = activity.getCurrentFocus();
- new KeyboardServiceImpl(ApplicationStatus.getApplicationContext(), keyboardRequest);
+ KeyboardService.MANAGER.bind(
+ new KeyboardServiceImpl(ApplicationStatus.getApplicationContext()),
+ keyboardRequest);
KeyboardServiceImpl.setActiveView(v);
}
}
« no previous file with comments | « shell/BUILD.gn ('k') | sky/apk/demo/org/domokit/sky/demo/SkyDemoApplication.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698