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:
@@ -215,7 +215,7 @@ public final class CallManager {
|
|||||||
* @param phone
|
* @param phone
|
||||||
*/
|
*/
|
||||||
public void unregisterPhone(Phone phone) {
|
public void unregisterPhone(Phone phone) {
|
||||||
if (phone != null && !mPhones.contains(phone)) {
|
if (phone != null && mPhones.contains(phone)) {
|
||||||
mPhones.remove(phone);
|
mPhones.remove(phone);
|
||||||
mRingingCalls.remove(phone.getRingingCall());
|
mRingingCalls.remove(phone.getRingingCall());
|
||||||
mBackgroundCalls.remove(phone.getBackgroundCall());
|
mBackgroundCalls.remove(phone.getBackgroundCall());
|
||||||
|
|||||||
Reference in New Issue
Block a user