Skip to content

Commit

Permalink
Fix background item taking touchEvent when popup was open
Browse files Browse the repository at this point in the history
  • Loading branch information
psykzz committed May 4, 2018
1 parent 9e03f16 commit bea096d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/fr/neamar/kiss/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,11 @@ public void onLauncherButtonClicked(View launcherButton) {

@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
boolean handled = super.dispatchTouchEvent(ev);
if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) {
if (mPopup != null && ev.getActionMasked() == MotionEvent.ACTION_DOWN) {
dismissPopup();
return true;
}
return handled;
return super.dispatchTouchEvent(ev);
}

private void displayClearOnInput() {
Expand Down

0 comments on commit bea096d

Please sign in to comment.