forked from extern/Unexpected-Keyboard
Fix inaccessible text layout from pin
The "main" layout can now be pin layout. 'SWITCH_TEXT' and 'SWITCH_SECOND_BACK' don't mean to use that.
This commit is contained in:
parent
a891a3a99b
commit
764cd882d2
@ -45,7 +45,7 @@ class KeyEventHandler implements Config.IKeyEventHandler
|
||||
{
|
||||
case CONFIG: _recv.showKeyboardConfig(); break;
|
||||
case SWITCH_TEXT:
|
||||
case SWITCH_SECOND_BACK: _recv.switch_main(); break;
|
||||
case SWITCH_SECOND_BACK: _recv.switch_text(); break;
|
||||
case SWITCH_NUMERIC: _recv.switch_layout(R.xml.numeric); break;
|
||||
case SWITCH_EMOJI: _recv.setPane_emoji(); break;
|
||||
case SWITCH_BACK_EMOJI: _recv.setPane_normal(); break;
|
||||
@ -162,7 +162,7 @@ class KeyEventHandler implements Config.IKeyEventHandler
|
||||
public void setPane_normal();
|
||||
public void showKeyboardConfig();
|
||||
|
||||
public void switch_main();
|
||||
public void switch_text();
|
||||
public void switch_second();
|
||||
public void switch_layout(int layout_id);
|
||||
|
||||
|
@ -319,9 +319,9 @@ public class Keyboard2 extends InputMethodService
|
||||
_keyboardView.set_shift_state(state, lock);
|
||||
}
|
||||
|
||||
public void switch_main()
|
||||
public void switch_text()
|
||||
{
|
||||
_keyboardView.setKeyboard(main_layout());
|
||||
_keyboardView.setKeyboard(_currentTextLayout);
|
||||
}
|
||||
|
||||
public void switch_layout(int layout_id)
|
||||
|
Loading…
Reference in New Issue
Block a user