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

Commit 2bd3161b authored by Fahim's avatar Fahim
Browse files

WIP: null check on hasNextButton

parent b0e6f926
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -662,8 +662,11 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
    }

    protected boolean hasNextButton() {
        if (getActivity() instanceof ButtonBarHandler) {
            return ((ButtonBarHandler) getActivity()).hasNextButton();
        }
        return false;
    }

    protected Button getNextButton() {
        return ((ButtonBarHandler) getActivity()).getNextButton();