mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 13:00:12 -07:00
Make the soft and hard keyboard mutually exclusive
This commit is contained in:
parent
e74fb95f98
commit
4de7413c0f
1 changed files with 3 additions and 1 deletions
|
|
@ -891,7 +891,9 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
* of the current TouchCharInput
|
||||
*/
|
||||
public void switchKeyboardState(){
|
||||
if(touchCharInput.hasFocus()){
|
||||
//If an hard keyboard is present, never trigger the soft one
|
||||
if(touchCharInput.hasFocus()
|
||||
|| getResources().getConfiguration().keyboard == Configuration.KEYBOARD_QWERTY){
|
||||
touchCharInput.clear();
|
||||
touchCharInput.disable();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue