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); |
} |
} |