package org.tb.sundtektvinput.ui.setup;

import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v17.leanback.widget.GuidanceStylist;
import android.support.v17.leanback.widget.GuidedAction;
import android.widget.Toast;

import org.tb.sundtektvinput.R;
import org.tb.sundtektvinput.ui.setup.base.SetupBaseFragment;

import java.util.List;

public class FinishFragment extends SetupBaseFragment {


    @Override
    @NonNull
    public GuidanceStylist.Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) {
        String title = "Scan finished";
        String description = "You are now ready to watch TV";
        Drawable icon = getActivity().getDrawable(R.drawable.ic_launcher);
        return new GuidanceStylist.Guidance(title, description, breadcrumb, icon);
    }

    @Override
    public void onCreateActions(@NonNull List<GuidedAction> actions, Bundle savedInstanceState) {
        actions.add(new GuidedAction.Builder(getActivity())
                .id(0)
                .title("Finish")
                .build());
    }

    @Override
    public void onGuidedActionClicked(GuidedAction action) {
        if (action.getId() == 0) {
            Toast.makeText(getActivity(), "NEXT", Toast.LENGTH_LONG).show();
            finishGuidedStepFragments();
        }
    }
}

@@ -38,51 +38,8 @@
 p;%0A%0A
-import android.graphics.drawable.Drawable;%0A
 impo
@@ -60,16 +60,16 @@
 Bundle;%0A
+
 import a
@@ -254,40 +254,8 @@
 t;%0A%0A
-import org.tb.sundtektvinput.R;%0A
 impo
@@ -622,16 +622,19 @@
 %0A       
+ //
  Drawabl
@@ -769,20 +769,20 @@
 dcrumb, 
-icon
+null
 );%0A    %7D

Remove placeholder drawable