Skip to content

Commit 7d2bd61

Browse files
committed
Revert "HeadsUp: Fix dismiss on back key press."
This reverts commit 2aa1c08.
1 parent 07f47be commit 7d2bd61

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import android.graphics.Rect;
2323
import android.util.AttributeSet;
2424
import android.util.Log;
25-
import android.view.KeyEvent;
2625
import android.view.MotionEvent;
2726
import android.view.View;
2827
import android.view.ViewConfiguration;
@@ -229,19 +228,6 @@ public void onChildDismissed(View v, boolean direction) {
229228
mBar.onHeadsUpDismissed(direction);
230229
}
231230

232-
@Override
233-
public boolean dispatchKeyEvent(KeyEvent event) {
234-
boolean down = event.getAction() == KeyEvent.ACTION_DOWN;
235-
switch (event.getKeyCode()) {
236-
case KeyEvent.KEYCODE_BACK:
237-
if (!down && !event.isCanceled()) {
238-
mBar.hideHeadsUp();
239-
}
240-
return true;
241-
}
242-
return super.dispatchKeyEvent(event);
243-
}
244-
245231
@Override
246232
public void onChildTriggered(View v) {
247233
}

0 commit comments

Comments
 (0)