Skip to content
Browse files

Edited src/com/android/phone/PhoneUtils.java via GitHub

  • Loading branch information...
1 parent d9e6a6b commit 1a0687b0528d3c1e93a549c56e82ec481d49aba2 @ncc-1701 committed Sep 29, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/com/android/phone/PhoneUtils.java
View
10 src/com/android/phone/PhoneUtils.java
@@ -1975,11 +1975,6 @@ private static String audioModeToString(int mode) {
} else {
// No incoming ringing call.
if (event.isLongPress()) {
- if (DBG) log("handleHeadsetHook: longpress -> hangup");
- hangup(PhoneApp.getInstance().mCM);
- }
- else if (event.getAction() == KeyEvent.ACTION_UP &&
- event.getRepeatCount() == 0) {
Connection c = phone.getForegroundCall().getLatestConnection();
// If it is NOT an emg #, toggle the mute state. Otherwise, ignore the hook.
if (c != null && !PhoneNumberUtils.isEmergencyNumber(c.getAddress())) {
@@ -1992,6 +1987,11 @@ else if (event.getAction() == KeyEvent.ACTION_UP &&
}
}
}
+ else if (event.getAction() == KeyEvent.ACTION_UP &&
+ event.getRepeatCount() == 0) {
+ if (DBG) log("handleHeadsetHook: longpress -> hangup");
+ hangup(PhoneApp.getInstance().mCM);
+ }
}
// Even if the InCallScreen is the current activity, there's no

0 comments on commit 1a0687b

Please sign in to comment.
Something went wrong with that request. Please try again.