Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c190029 authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

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

* commit '2235ecd5':
  Reset the setOnKeyListener callback when view is destroyed
parents 8421c96a 2235ecd5
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -214,6 +214,9 @@ public abstract class PreferenceFragment extends Fragment implements


    @Override
    @Override
    public void onDestroyView() {
    public void onDestroyView() {
        if (mList != null) {
            mList.setOnKeyListener(null);
        }
        mList = null;
        mList = null;
        mHandler.removeCallbacks(mRequestFocus);
        mHandler.removeCallbacks(mRequestFocus);
        mHandler.removeMessages(MSG_BIND_PREFERENCES);
        mHandler.removeMessages(MSG_BIND_PREFERENCES);