am f8ac5c34: Merge "Reset the setOnKeyListener callback when view is destroyed"

* commit 'f8ac5c3469e53a7934731cfb854efb2975251ab4':
  Reset the setOnKeyListener callback when view is destroyed
This commit is contained in:
Alan Viverette
2015-10-07 16:54:17 +00:00
committed by Android Git Automerger

View File

@@ -214,6 +214,9 @@ public abstract class PreferenceFragment extends Fragment implements
@Override
public void onDestroyView() {
if (mList != null) {
mList.setOnKeyListener(null);
}
mList = null;
mHandler.removeCallbacks(mRequestFocus);
mHandler.removeMessages(MSG_BIND_PREFERENCES);