Fix a bug in unregisterPhone().

Change-Id: Ifaef66d45043dc5376688a77f9d18124a9c29576
This commit is contained in:
Chung-yih Wang
2010-08-11 14:22:34 +08:00
parent 091c5238a0
commit 2725a65512

View 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());