Skip to content

Commit

Permalink
fixed java errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yours-fusky committed Aug 8, 2013
1 parent fa094e9 commit 5fe2c67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/android/Keyboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import org.json.JSONArray;

import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;

import android.content.Context;
import android.view.inputmethod.InputMethodManager;
Expand All @@ -15,12 +15,12 @@ public Keyboard() {
@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) {
if (action.equals("show")) {
this.showKeyBoard();
this.showKeyboard();
callbackContext.success("done");
return true;
}
else if (action.equals("hide")) {
this.hideKeyBoard();
this.hideKeyboard();
callbackContext.success();
return true;
}
Expand All @@ -36,7 +36,7 @@ public void showKeyboard() {
((InputMethodManager) cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE)).showSoftInput(webView, 0);
}

public void hideKeyBoard() {
public void hideKeyboard() {
InputMethodManager mgr = (InputMethodManager) cordova.getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.hideSoftInputFromWindow(webView.getWindowToken(), 0);
}
Expand Down

0 comments on commit 5fe2c67

Please sign in to comment.