Skip to content

Commit

Permalink
fix keyboard closed event triggering on resume
Browse files Browse the repository at this point in the history
  • Loading branch information
TBog committed May 31, 2024
1 parent 28c4f64 commit f7fbfcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/rocks/tbog/tblauncher/Behaviour.java
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ public void showKeyboard() {
}

Log.i(TAG, "Keyboard - SHOW");
removeCallback(mOnKeyboardClosedByUser);
dismissPopup();

mSearchEditText.requestFocus();
Expand Down Expand Up @@ -556,6 +557,9 @@ public void onCreateActivity(TBLauncherActivity tbLauncherActivity) {
}

public void onStart() {
// don't let the close keyboard event trigger
mKeyboardHandler.mLaunchedApp = true;

String initialDesktop = mPref.getString("initial-desktop", null);
if ("none".equals(initialDesktop)) {
if (TBApplication.state().getDesktop() != null) {
Expand Down

0 comments on commit f7fbfcc

Please sign in to comment.