@Test public void onScanFinished() { fragment.onScanFinished(); List<GuidedAction> actions = fragment.getActions(); Assert.assertEquals("action count", 1, actions.size()); Assert.assertEquals("action id", GuidedAction.ACTION_ID_FINISH, actions.get(0).getId()); }
@Override public void onScanFinished() { List<GuidedAction> actions = new ArrayList<>(1); actions.add( new GuidedAction.Builder(getContext()) .id(GuidedAction.ACTION_ID_FINISH) .title(R.string.lb_guidedaction_finish_title) .build()); setActions(actions); setupPeriodicSync(); }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScanFinished() { List<GuidedAction> actions = new ArrayList<>(1); actions.add( new GuidedAction.Builder(getContext()) .id(GuidedAction.ACTION_ID_FINISH) .title(R.string.lb_guidedaction_finish_title) .build()); setActions(actions); setupPeriodicSync(); } }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScanFinished() { List<GuidedAction> actions = new ArrayList<>(1); actions.add( new GuidedAction.Builder(getContext()) .id(GuidedAction.ACTION_ID_FINISH) .title(R.string.lb_guidedaction_finish_title) .build()); setActions(actions); setupPeriodicSync(); }  }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScanFinished() { List<GuidedAction> actions = new ArrayList<>(1); actions.add( new GuidedAction.Builder(getContext()) .id(GuidedAction.ACTION_ID_FINISH) .title(R.string.lb_guidedaction_finish_title) .build()); setActions(actions); setupPeriodicSync(); }  @Override void onCreate(Bundle savedInstanceState); @Override ChannelSetupStylist onCreateGuidanceStylist(); @Override Guidance onCreateGuidance(Bundle savedInstanceState); @Override void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState); @Override ChannelSetupStylist getGuidanceStylist(); @Override void onStart(); abstract Class<J> getEpgSyncJobServiceClass(); @Override void onGuidedActionClicked(GuidedAction action); @Override void onScanStepCompleted(int completedStep, int totalSteps); @Override void onScannedChannel(CharSequence displayName, CharSequence displayNumber); @Override void onScanFinished(); long getFullSyncWindowSec(); long getFullSyncFrequencyMillis(); @Override void onScanError(int errorCode); }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScanFinished() { List<GuidedAction> actions = new ArrayList<>(1); actions.add( new GuidedAction.Builder(getContext()) .id(GuidedAction.ACTION_ID_FINISH) .title(R.string.lb_guidedaction_finish_title) .build()); setActions(actions); setupPeriodicSync(); }  @Override void onCreate(Bundle savedInstanceState); @Override ChannelSetupStylist onCreateGuidanceStylist(); @Override Guidance onCreateGuidance(Bundle savedInstanceState); @Override void onCreateActions(List<GuidedAction> actions, Bundle savedInstanceState); @Override ChannelSetupStylist getGuidanceStylist(); @Override void onStart(); abstract Class<J> getEpgSyncJobServiceClass(); @Override void onGuidedActionClicked(GuidedAction action); @Override void onScanStepCompleted(int completedStep, int totalSteps); @Override void onScannedChannel(CharSequence displayName, CharSequence displayNumber); @Override void onScanFinished(); long getFullSyncWindowSec(); long getFullSyncFrequencyMillis(); @Override void onScanError(int errorCode);  }