Fix a bug in unregisterPhone().
Change-Id: Ifaef66d45043dc5376688a77f9d18124a9c29576
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