public boolean trySettingInputEnabled ( boolean inputEnabled ) { if ( mDoingTouch && ! inputEnabled ) { // If we're trying to disable input, but we're in the middle of a touch event, // we'll allow the touch event to continue before disabling input. return false ; } mInputEnabled = inputEnabled ; mGrayBox . setVisibility ( inputEnabled ? View . INVISIBLE : View . VISIBLE ) ; return true ; }
Set touch input as enabled or disabled for use with keyboard mode .