Skip to content

Commit

Permalink
FireTV fix (update1)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliskov committed Mar 25, 2018
1 parent e9cc575 commit 0ed1761
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions leankeykeyboard/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "org.liskovsoft.leankeykeyboard.pro"
minSdkVersion project.properties.minSdkVersion
targetSdkVersion project.properties.targetSdkVersion
versionCode 57
versionName "4.3.7"
versionCode 58
versionName "4.3.8"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,11 @@ public boolean onKeyUp(int keyCode, KeyEvent event) {
return isInputViewShown() && mKeyboardController.onKeyUp(keyCode, event) || super.onKeyUp(keyCode, event);
}

@Override
public boolean onShowInputRequested(int flags, boolean configChange) {
return true;
}
// FireTV fix
//@Override
//public boolean onShowInputRequested(int flags, boolean configChange) {
// return true;
//}

@Override
public int onStartCommand(final Intent intent, final int flags, final int startId) {
Expand Down Expand Up @@ -305,10 +306,11 @@ public void onStartInputView(EditorInfo info, boolean restarting) {

// FireTV: fix accidental kbd pop-ups
// more info: https://forum.xda-developers.com/fire-tv/general/guide-change-screen-keyboard-to-leankey-t3527675/page2
//if (!mKeyboardController.showInputView()) {
// onHideIme();
// return;
//}
updateInputViewShown();
if (!mKeyboardController.showInputView()) {
onHideIme();
return;
}

mKeyboardController.onStartInputView();
sendBroadcast(new Intent(IME_OPEN));
Expand Down

0 comments on commit 0ed1761

Please sign in to comment.