diff options
author | Chung-yih Wang <cywang@google.com> | 2010-08-11 14:22:34 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2010-08-11 14:22:34 +0800 |
commit | 2725a6551261044318e42ccc9ebeabed7edf5ee7 (patch) | |
tree | c4cb7a02f98b4c37fd8687bf7114c8d9d3601df5 /telephony | |
parent | 091c5238a00ca51dc69b8b09459e6ac88e1eb077 (diff) | |
download | frameworks_base-2725a6551261044318e42ccc9ebeabed7edf5ee7.zip frameworks_base-2725a6551261044318e42ccc9ebeabed7edf5ee7.tar.gz frameworks_base-2725a6551261044318e42ccc9ebeabed7edf5ee7.tar.bz2 |
Fix a bug in unregisterPhone().
Change-Id: Ifaef66d45043dc5376688a77f9d18124a9c29576
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/CallManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/CallManager.java b/telephony/java/com/android/internal/telephony/CallManager.java index b57f358..4dc1991 100644 --- a/telephony/java/com/android/internal/telephony/CallManager.java +++ b/telephony/java/com/android/internal/telephony/CallManager.java @@ -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()); |