From cc8edea06578780598e1bda573f24845e119ed89 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Sat, 18 Feb 2012 13:19:50 -0600 Subject: [PATCH] Call js code using new common js way. --- .../org/apache/cordova/LinearLayoutSoftKeyboardDetect.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/org/apache/cordova/LinearLayoutSoftKeyboardDetect.java b/framework/src/org/apache/cordova/LinearLayoutSoftKeyboardDetect.java index 3f933005..31ccf8a9 100755 --- a/framework/src/org/apache/cordova/LinearLayoutSoftKeyboardDetect.java +++ b/framework/src/org/apache/cordova/LinearLayoutSoftKeyboardDetect.java @@ -87,13 +87,13 @@ public class LinearLayoutSoftKeyboardDetect extends LinearLayout { // gone away. else if (height > oldHeight) { if(app != null) - app.sendJavascript("Cordova.fireDocumentEvent('hidekeyboard');"); + app.sendJavascript("require('cordova').fireDocumentEvent('hidekeyboard');"); } // If the height as gotten smaller then we will assume the soft keyboard has // been displayed. else if (height < oldHeight) { if(app != null) - app.sendJavascript("Cordova.fireDocumentEvent('showkeyboard');"); + app.sendJavascript("require('cordova').fireDocumentEvent('showkeyboard');"); } // Update the old height for the next event