From 19d96726148165dd20c30030f357f42d181aa734 Mon Sep 17 00:00:00 2001 From: Yky Date: Sun, 4 Oct 2015 20:33:32 +0200 Subject: [PATCH] ignore leakcanary issue #297; AOSP issue #188551 --- .../squareup/leakcanary/AndroidExcludedRefs.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/leakcanary-android/src/main/java/com/squareup/leakcanary/AndroidExcludedRefs.java b/leakcanary-android/src/main/java/com/squareup/leakcanary/AndroidExcludedRefs.java index 236c716096..bbcb4d1580 100644 --- a/leakcanary-android/src/main/java/com/squareup/leakcanary/AndroidExcludedRefs.java +++ b/leakcanary-android/src/main/java/com/squareup/leakcanary/AndroidExcludedRefs.java @@ -375,6 +375,21 @@ public enum AndroidExcludedRefs { } }, + EDITTEXT_BLINK_MESSAGEQUEUE { + @Override void add(ExcludedRefs.Builder excluded) { + excluded.instanceField("android.widget.Editor$Blink", "this$0") + .reason("The EditText Blink of the Cursor is implemented using a callback and Messages," + + " which trigger the display of the Cursor. If an AlertDialog or DialogFragment that" + + " contains a blinking cursor is detached a message is posted with a delay after the" + + " dialog has been closed and as a result leaks the Activity." + + " This can be fixed manually by calling setCursorEnabled(false) in the dismiss()" + + " method of the dialog." + + " Tracked here: https://code.google.com/p/android/issues/detail?id=188551" + + " Fixed in AOSP: https://android.googlesource.com/platform/frameworks/base/+" + + "/5b734f2430e9f26c769d6af8ea5645e390fcf5af%5E%21/"); + } + }, + SERVICE_BINDER { @Override void add(ExcludedRefs.Builder excluded) { // We should ignore leaks where an android.os.Binder is the root of the leak.