package com.heinrichreimersoftware.materialintro.app;

import android.support.v4.app.Fragment;

public class SlideFragment extends Fragment {

    public boolean canGoForward() {
        return true;
    }

    public boolean canGoBackward() {
        return true;
    }

    public void updateNavigation() {
        if (getActivity() instanceof IntroActivity) {
            ((IntroActivity) getActivity()).lockSwipeIfNeeded();
        }
    }

    protected void nextSlide() {
        if (getActivity() instanceof IntroActivity) {
            ((IntroActivity) getActivity()).nextSlide();
        }
    }

    protected void previousSlide() {
        if (getActivity() instanceof IntroActivity) {
            ((IntroActivity) getActivity()).previousSlide();
        }
    }

}

@@ -430,32 +430,526 @@
        %7D%0A    %7D%0A%0A
+    public void addOnNavigationBlockedListener(OnNavigationBlockedListener listener) %7B%0A        if (getActivity() instanceof IntroActivity) %7B%0A            ((IntroActivity) getActivity()).addOnNavigationBlockedListener(listener);%0A        %7D%0A    %7D%0A%0A    public void removeOnNavigationBlockedListener(OnNavigationBlockedListener listener) %7B%0A        if (getActivity() instanceof IntroActivity) %7B%0A            ((IntroActivity) getActivity()).removeOnNavigationBlockedListener(listener);%0A        %7D%0A    %7D%0A%0A
     protected vo

Add helper method to get blocked listener in frag