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

Commit e452f093 authored by Danny Baumann's avatar Danny Baumann Committed by Adnan Begovic
Browse files

Allow subclasses to override bindPreferences().

Allows them to modify adapter behaviour.

Change-Id: I6767e3988740b674fbdf40a903cd2ef3949ca7db
parent 240e0bed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -324,7 +324,8 @@ public abstract class PreferenceFragment extends Fragment implements
        mHandler.obtainMessage(MSG_BIND_PREFERENCES).sendToTarget();
    }

    private void bindPreferences() {
    /** @hide */
    protected void bindPreferences() {
        final PreferenceScreen preferenceScreen = getPreferenceScreen();
        if (preferenceScreen != null) {
            preferenceScreen.bind(getListView());