summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Huang <wei.x.huang@sonymobile.com>2015-02-10 13:46:41 +0800
committerNaoyuki Konda <naoyuki.konda@sonymobile.com>2016-10-19 19:40:55 +0900
commit0c101baa830cdd7e9082ee1526fd14078581b248 (patch)
tree6af30076f81f13e14221825ae25f4a0b6a37de3e
parentd1be0b9328f56d98e3d623d38d0c279a290a1ee0 (diff)
Fix OOM issue of InCallUI
CallButtonPresenter didn't remove itself from InCallPresenter(CanAddCallListener). Bug: 32266071 Change-Id: I2ad979d9eebeb110b03e5a1c103d7a4f98e317c0
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index 39dd5eae2..2b96a55a9 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -1336,6 +1336,9 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
setViewStatePostAnimation(listener);
mIsAnimating = false;
InCallPresenter.getInstance().onShrinkAnimationComplete();
+ if (animator != null) {
+ animator.removeListener(this);
+ }
}
});
animator.start();