am 2725a655: Fix a bug in unregisterPhone().

Merge commit '2725a6551261044318e42ccc9ebeabed7edf5ee7' into gingerbread-plus-aosp

* commit '2725a6551261044318e42ccc9ebeabed7edf5ee7':
  Fix a bug in unregisterPhone().
This commit is contained in:
Chung-yih Wang
2010-08-10 23:41:48 -07:00
committed by Android Git Automerger

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