Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 1a0687b0528d3c1e93a549c56e82ec481d49aba2 1 parent d9e6a6b
ncc-1701-a authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 src/com/android/phone/PhoneUtils.java
10 src/com/android/phone/PhoneUtils.java
@@ -1975,11 +1975,6 @@ private static String audioModeToString(int mode) {
1975 1975 } else {
1976 1976 // No incoming ringing call.
1977 1977 if (event.isLongPress()) {
1978   - if (DBG) log("handleHeadsetHook: longpress -> hangup");
1979   - hangup(PhoneApp.getInstance().mCM);
1980   - }
1981   - else if (event.getAction() == KeyEvent.ACTION_UP &&
1982   - event.getRepeatCount() == 0) {
1983 1978 Connection c = phone.getForegroundCall().getLatestConnection();
1984 1979 // If it is NOT an emg #, toggle the mute state. Otherwise, ignore the hook.
1985 1980 if (c != null && !PhoneNumberUtils.isEmergencyNumber(c.getAddress())) {
@@ -1992,6 +1987,11 @@ else if (event.getAction() == KeyEvent.ACTION_UP &&
1992 1987 }
1993 1988 }
1994 1989 }
  1990 + else if (event.getAction() == KeyEvent.ACTION_UP &&
  1991 + event.getRepeatCount() == 0) {
  1992 + if (DBG) log("handleHeadsetHook: longpress -> hangup");
  1993 + hangup(PhoneApp.getInstance().mCM);
  1994 + }
1995 1995 }
1996 1996
1997 1997 // 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.