diff options
author | Wei Huang <wei.x.huang@sonymobile.com> | 2015-04-08 15:03:51 +0200 |
---|---|---|
committer | Santos Cordon <santoscordon@google.com> | 2015-04-27 10:56:23 -0700 |
commit | 4e9c89a6f3f625857c273d6d825ea2549f7136ff (patch) | |
tree | a09ed2539ca03221801256f0060e8ee609f930d1 /InCallUI | |
parent | d97f5344fa8e57dd53943a279acfcb22fbfa7bd6 (diff) |
Fix memory leak: remove a listener
CallButtonPresenter doesn't remove itself from InCallPresenter.CanAddCallListener,
which causes a memory leak.
Change-Id: I3dcfc6aaa26eca3547e95de01b292042e46e30af
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallButtonPresenter.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java index 2544c5f92..43ee3326b 100644 --- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java +++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java @@ -79,6 +79,7 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto InCallPresenter.getInstance().removeIncomingCallListener(this); InCallPresenter.getInstance().removeDetailsListener(this); InCallPresenter.getInstance().getInCallCameraManager().removeCameraSelectionListener(this); + InCallPresenter.getInstance().removeCanAddCallListener(this); } @Override |