From 567267015dee3bfaee9a01eef7a874699a28265b Mon Sep 17 00:00:00 2001 From: Johan8 Persson2 Date: Wed, 16 May 2012 14:27:25 +0200 Subject: Fixed memory leak in ExtractEditLayout finish() When marking text and opening the edit text dialog and then rotating the device would result in references being kept to the edit text dialog and the memory would never get released again. Change-Id: I3e95083e4923844d2b496ea79174ef97e77f8686 --- core/java/android/inputmethodservice/ExtractEditLayout.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/android/inputmethodservice/ExtractEditLayout.java b/core/java/android/inputmethodservice/ExtractEditLayout.java index 56968398871f..e902443b16f4 100644 --- a/core/java/android/inputmethodservice/ExtractEditLayout.java +++ b/core/java/android/inputmethodservice/ExtractEditLayout.java @@ -163,6 +163,8 @@ public class ExtractEditLayout extends LinearLayout { mCallback.onDestroyActionMode(this); mCallback = null; + mMenu.close(); + mExtractActionButton.setVisibility(VISIBLE); mEditButton.setVisibility(INVISIBLE); -- cgit v1.2.3-59-g8ed1b