Skip to content

Commit

Permalink
ignore leakcanary issue square#297; AOSP issue #188551
Browse files Browse the repository at this point in the history
  • Loading branch information
Yky authored and pyricau committed Mar 19, 2016
1 parent 38897d8 commit 45f8991
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/com/squareup/leakcanary/AndroidExcludedRefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 45f8991

Please sign in to comment.