Created
January 23, 2015 03:49
-
-
Save anonymous/92ed932fdb58f05f16f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// hide the virtual keyboard | |
InputMethodManager imm = | |
(InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); | |
android.os.ResultReceiver rr = new android.os.ResultReceiver(new android.os.Handler()) { | |
@Override | |
protected void onReceiveResult(int resultCode, Bundle resultData) { | |
//no worky :( | |
Tab tab = Tabs.getInstance().getSelectedTab(); | |
if (tab != null) { | |
if (!tab.isPrivate()) | |
activity.showNormalTabs(); | |
else | |
activity.showPrivateTabs(); | |
} | |
} | |
}; | |
boolean hideResult = imm.hideSoftInputFromWindow(tabsButton.getWindowToken(), 0, rr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment