Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #39 from jgibbons/master
Browse files Browse the repository at this point in the history
resolve java.lang.NullPointerException
  • Loading branch information
tlancina committed Feb 4, 2015
2 parents ef0ef7d + bd1adc9 commit 9ddd8f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/android/IonicKeyboard.java
Expand Up @@ -71,9 +71,10 @@ public void run() {

if (v == null) {
callbackContext.error("No current focus");
} else {
inputManager.hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
callbackContext.success(); // Thread-safe.
}
inputManager.hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
callbackContext.success(); // Thread-safe.
}
});
return true;
Expand Down

0 comments on commit 9ddd8f5

Please sign in to comment.