OSDN Git Service

Fix a bug in unregisterPhone().
authorChung-yih Wang <cywang@google.com>
Wed, 11 Aug 2010 06:22:34 +0000 (14:22 +0800)
committerChung-yih Wang <cywang@google.com>
Wed, 11 Aug 2010 06:22:34 +0000 (14:22 +0800)
Change-Id: Ifaef66d45043dc5376688a77f9d18124a9c29576

telephony/java/com/android/internal/telephony/CallManager.java

index b57f358..4dc1991 100644 (file)
@@ -215,7 +215,7 @@ public final class CallManager {
      * @param phone
      */
     public void unregisterPhone(Phone phone) {
-        if (phone != null && !mPhones.contains(phone)) {
+        if (phone != null && mPhones.contains(phone)) {
             mPhones.remove(phone);
             mRingingCalls.remove(phone.getRingingCall());
             mBackgroundCalls.remove(phone.getBackgroundCall());