Reset the setOnKeyListener callback when view is destroyed
NPE happened in mListOnKeyListener.onKey(). It looks like onKey in some cases is sent to a view while beeing destroyed. When callback is received mList is referenced causing the NPE. Remove OnKeyListener first when destroying view so we can not get any unwanted key callbacks. Bug: 22333421 Change-Id: I94b198e31a2f9fbdd7fbadf4971be7720dcfad8d
Loading
Please register or sign in to comment