Skip to content

Commit

Permalink
ignore leakcanary issue #297; AOSP issue #188551
Browse files Browse the repository at this point in the history
  • Loading branch information
Yky committed Feb 21, 2016
1 parent b858815 commit 845eb60
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,18 @@ public enum AndroidExcludedRefs {
excluded.instanceField("android.view.Choreographer$FrameDisplayEventReceiver",
"mMessageQueue", true);
}
},

EDITTEXT_BLINK_MESSAGEQUEUE {
@Override void add(ExcludedRefs.Builder excluded) {
// 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
excluded.instanceField("android.widget.EditText", "mContext");
}
};

/**
Expand Down

0 comments on commit 845eb60

Please sign in to comment.