Skip to content

Commit

Permalink
Merge pull request square#457 from square/py/merge_yky
Browse files Browse the repository at this point in the history
ignore leakcanary issue square#297; AOSP issue #188551
  • Loading branch information
jrodbx committed Mar 20, 2016
2 parents e5c0eee + 19d9672 commit 8fa2a64
Showing 1 changed file with 15 additions and 0 deletions.
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 8fa2a64

Please sign in to comment.