diff options
author | Yorke Lee <yorkelee@google.com> | 2015-10-19 21:19:49 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-19 21:19:49 +0000 |
commit | 27c5fd518f645a189c933ad08ec0f6b7781f1a67 (patch) | |
tree | d7932d6dc1d960456f4311d1520214bbe097e365 | |
parent | cfe027f16dfb922c77f36a687af8e1b4aa796051 (diff) | |
parent | 12b21e7d56d8132f3e550bf3b44933726af6e9d3 (diff) |
am 3a576b7a: Fix bitmap leaks in InCallUI am: 24ad92950a
* commit '3a576b7ab31275801064d2e1875b5fe8e06ea612':
Fix bitmap leaks in InCallUI
-rw-r--r-- | InCallUI/src/com/android/incallui/StatusBarNotifier.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java index a9b6cccbe..4d4e3493c 100644 --- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java +++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java @@ -118,6 +118,10 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener, * @see #updateInCallNotification(InCallState,CallList) */ private void cancelNotification() { + if (!TextUtils.isEmpty(mCallId)) { + CallList.getInstance().removeCallUpdateListener(mCallId, this); + mCallId = null; + } if (mCurrentNotification != NOTIFICATION_NONE) { Log.d(this, "cancelInCall()..."); mNotificationManager.cancel(mCurrentNotification); @@ -161,7 +165,7 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener, final boolean isIncoming = (call.getState() == Call.State.INCOMING || call.getState() == Call.State.CALL_WAITING); - if (mCallId != null) { + if (!TextUtils.isEmpty(mCallId)) { CallList.getInstance().removeCallUpdateListener(mCallId, this); } mCallId = call.getId(); |