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
pavanion committed Oct 4, 2015
1 parent 0be6fe9 commit e023ea6
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,18 @@ public enum AndroidExcludedRefs {
}
};

EDITTEXT_BLINK_MESSAGEQEUE {
@Override void add(ExludedRefs.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");
}
}

/**
* This returns the references in the leak path that should be ignored by all on Android.
*/
Expand Down

0 comments on commit e023ea6

Please sign in to comment.