@Test public void onScanStepCompleted() { ProgressBar progressBar = guidanceStylist.getProgressBar(); fragment.onScanStepCompleted(1, 10); Assert.assertEquals("progressBar.getProgress()", 1, progressBar.getProgress()); Assert.assertEquals("progressBar.getMax()", 10, progressBar.getMax()); }
@Override public void onScanStepCompleted(int completedStep, int totalSteps) { ProgressBar progressBar = mChannelSetupStylist.getProgressBar(); if (totalSteps > 0 && progressBar != null) { progressBar.setIndeterminate(false); progressBar.setMax(totalSteps); progressBar.setProgress(completedStep); } }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScanStepCompleted(int completedStep, int totalSteps) { ProgressBar progressBar = mChannelSetupStylist.getProgressBar(); if (totalSteps > 0 && progressBar != null) { progressBar.setIndeterminate(false); progressBar.setMax(totalSteps); progressBar.setProgress(completedStep); } } }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScanStepCompleted(int completedStep, int totalSteps) { ProgressBar progressBar = mChannelSetupStylist.getProgressBar(); if (totalSteps > 0 && progressBar != null) { progressBar.setIndeterminate(false); progressBar.setMax(totalSteps); progressBar.setProgress(completedStep); } }  }
ChannelSetupStepFragment extends GuidedStepFragment implements SyncListener { @Override public void onScanStepCompleted(int completedStep, int totalSteps) { ProgressBar progressBar = mChannelSetupStylist.getProgressBar(); if (totalSteps > 0 && progressBar != null) { progressBar.setIndeterminate(false); progressBar.setMax(totalSteps); progressBar.setProgress(completedStep); } }  @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 onScanStepCompleted(int completedStep, int totalSteps) { ProgressBar progressBar = mChannelSetupStylist.getProgressBar(); if (totalSteps > 0 && progressBar != null) { progressBar.setIndeterminate(false); progressBar.setMax(totalSteps); progressBar.setProgress(completedStep); } }  @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);  }