Java Code Examples for android.view.inputmethod.InputMethodManager#isFullscreenMode()

The following examples show how to use android.view.inputmethod.InputMethodManager#isFullscreenMode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SearchDialog.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public void onBackPressed() {
    // If the input method is covering the search dialog completely,
    // e.g. in landscape mode with no hard keyboard, dismiss just the input method
    InputMethodManager imm = getContext().getSystemService(InputMethodManager.class);
    if (imm != null && imm.isFullscreenMode() &&
            imm.hideSoftInputFromWindow(getWindow().getDecorView().getWindowToken(), 0)) {
        return;
    }
    // Close search dialog
    cancel();
}
 
Example 2
Source File: Launcher.java    From LaunchEnr with GNU General Public License v3.0 4 votes vote down vote up
private boolean acceptFilter() {
    final InputMethodManager inputManager = (InputMethodManager)
            getSystemService(Context.INPUT_METHOD_SERVICE);
    return !inputManager.isFullscreenMode();
}
 
Example 3
Source File: Launcher.java    From TurboLauncher with Apache License 2.0 4 votes vote down vote up
private boolean acceptFilter() {
	final InputMethodManager inputManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
	return !inputManager.isFullscreenMode();
}
 
Example 4
Source File: Cocos2dxEditText.java    From Example-of-Cocos2DX with MIT License 4 votes vote down vote up
private boolean isFullScreenEdit() {
	final InputMethodManager imm = (InputMethodManager) this.mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
	return imm.isFullscreenMode();
}
 
Example 5
Source File: Cocos2dxEditText.java    From Example-of-Cocos2DX with MIT License 4 votes vote down vote up
private boolean isFullScreenEdit() {
	final InputMethodManager imm = (InputMethodManager) this.mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
	return imm.isFullscreenMode();
}
 
Example 6
Source File: Cocos2dxEditText.java    From Earlybird with Apache License 2.0 4 votes vote down vote up
private boolean isFullScreenEdit() {
	final InputMethodManager imm = (InputMethodManager) this.mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
	return imm.isFullscreenMode();
}