@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.dvr_stop_recording_dialog_title); String description; if (mStopReason == REASON_ON_CONFLICT) { String programTitle = mSchedule.getProgramTitle(); if (TextUtils.isEmpty(programTitle)) { ChannelDataManager channelDataManager = TvApplication.getSingletons(getActivity()).getChannelDataManager(); Channel channel = channelDataManager.getChannel(mSchedule.getChannelId()); programTitle = channel.getDisplayName(); } description = getString(R.string.dvr_stop_recording_dialog_description_on_conflict, mSchedule.getProgramTitle()); } else { description = getString(R.string.dvr_stop_recording_dialog_description); } Drawable image = getResources().getDrawable(R.drawable.ic_warning_white_96dp, null); return new Guidance(title, description, null, image); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title; String description; String breadcrumb; if (mChannelCountOnPreference > 0) { Resources res = getResources(); title = res.getQuantityString(R.plurals.ut_result_found_title, mChannelCountOnPreference, mChannelCountOnPreference); description = res.getQuantityString(R.plurals.ut_result_found_description, mChannelCountOnPreference, mChannelCountOnPreference); breadcrumb = null; } else { title = getString(R.string.ut_result_not_found_title); if (TunerInputInfoUtils.isBuiltInTuner(getActivity())) { description = getString(R.string.bt_result_not_found_description); } else { description = getString(R.string.ut_result_not_found_description); } breadcrumb = getString(R.string.ut_setup_breadcrumb); } return new Guidance(title, description, breadcrumb, null); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title; String description; if (mChannelCountOnPreference == 0) { if (TunerInputInfoUtils.isBuiltInTuner(getActivity())) { title = getString(R.string.bt_setup_new_title); description = getString(R.string.bt_setup_new_description); } else { title = getString(R.string.ut_setup_new_title); description = getString(R.string.ut_setup_new_description); } } else { title = getString(R.string.bt_setup_again_title); if (TunerInputInfoUtils.isBuiltInTuner(getActivity())) { description = getString(R.string.bt_setup_again_description); } else { description = getString(R.string.ut_setup_again_description); } } return new Guidance(title, description, null, null); }
@Override @NonNull public Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) { String title = getString(R.string.guidedstep_first_title); String breadcrumb = getString(R.string.guidedstep_first_breadcrumb); String description = getString(R.string.guidedstep_first_description); Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon); return new Guidance(title, description, breadcrumb, icon); }
@Override @NonNull public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.guidedstep_second_title); String breadcrumb = getString(R.string.guidedstep_second_breadcrumb); String description = getString(R.string.guidedstep_second_description); Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon); return new Guidance(title, description, breadcrumb, icon); }
@Override @NonNull public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.guidedstep_third_title); String breadcrumb = getString(R.string.guidedstep_third_breadcrumb); String description = getString(R.string.guidedstep_third_command) + OPTION_NAMES[getArguments().getInt(ARG_OPTION_IDX)]; Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon); return new Guidance(title, description, breadcrumb, icon); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.setup_sources_text); String description = getString(R.string.setup_sources_description); return new Guidance(title, description, null, null); }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String breadcrumb = null; SeriesRecording series = mDvrDataManager.getSeriesRecording(mSeriesRecordingId); if (series != null) { breadcrumb = series.getTitle(); } return new Guidance(getString(R.string.dvr_series_deletion_title), getString(R.string.dvr_series_deletion_description), breadcrumb, null); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getResources().getString(R.string.dvr_error_forget_storage_title); String description = getResources().getString( R.string.dvr_error_forget_storage_description); return new Guidance(title, description, null, null); }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getResources().getString(R.string.dvr_error_insufficient_space_title); String description = getResources() .getString(R.string.dvr_error_insufficient_space_description); return new Guidance(title, description, null, null); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.dvr_schedule_dialog_title); Drawable icon = getResources().getDrawable(R.drawable.ic_dvr, null); return new Guidance(title, null, null, icon); }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String breadcrumb = mComeFromSeriesRecording == null ? null : mComeFromSeriesRecording.getTitle(); return new Guidance(getString(R.string.dvr_priority_title), getString(R.string.dvr_priority_description), breadcrumb, null); }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getResources().getString(R.string.dvr_error_missing_storage_title); String description = getResources().getString( R.string.dvr_error_missing_storage_description); return new Guidance(title, description, null, null); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.dvr_already_scheduled_dialog_title); String description = getString(R.string.dvr_already_scheduled_dialog_description, DateUtils.formatDateTime(getContext(), mDuplicate.getStartTimeMs(), DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE)); Drawable image = getResources().getDrawable(R.drawable.ic_warning_white_96dp, null); return new Guidance(title, description, null, image); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getResources().getString(R.string.dvr_program_conflict_dialog_title); String descriptionPrefix = getString( R.string.dvr_program_conflict_dialog_description_prefix, mProgram.getTitle()); String description = getConflictDescription(); if (description == null) { dismissDialog(); } Drawable icon = getResources().getDrawable(R.drawable.ic_error_white_48dp, null); return new Guidance(title, descriptionPrefix + " " + description, null, icon); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getResources().getString(R.string.dvr_channel_conflict_dialog_title); String descriptionPrefix = getString( R.string.dvr_channel_conflict_dialog_description_prefix, mChannel.getDisplayName()); String description = getConflictDescription(); if (description == null) { dismissDialog(); } Drawable icon = getResources().getDrawable(R.drawable.ic_error_white_48dp, null); return new Guidance(title, descriptionPrefix + " " + description, null, icon); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getResources().getString( R.string.dvr_epg_channel_watch_conflict_dialog_title); String description = getResources().getString( R.string.dvr_epg_channel_watch_conflict_dialog_description); return new Guidance(title, description, null, null); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.dvr_already_recorded_dialog_title); String description = getString(R.string.dvr_already_recorded_dialog_description); Drawable image = getResources().getDrawable(R.drawable.ic_warning_white_96dp, null); return new Guidance(title, description, null, image); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { return new Guidance(getString(R.string.ut_connection_title), getString(R.string.ut_connection_description), getString(R.string.ut_setup_breadcrumb), null); }
@NonNull @Override public Guidance onCreateGuidance(Bundle savedInstanceState) { Guidance guidance = new Guidance(getString(R.string.dialog_example_title), getString(R.string.dialog_example_description), "", null); return guidance; }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.guidedstep_first_title); String breadcrumb = getString(R.string.guidedstep_first_breadcrumb); String description = getString(R.string.guidedstep_first_description); Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon); return new Guidance(title, description, breadcrumb, icon); }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.guidedstep_second_title); String breadcrumb = getString(R.string.guidedstep_second_breadcrumb); String description = getString(R.string.guidedstep_second_description); Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon); return new Guidance(title, description, breadcrumb, icon); }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getString(R.string.guidedstep_third_title); String breadcrumb = getString(R.string.guidedstep_third_breadcrumb); String description = getString(R.string.guidedstep_third_command) + OPTION_NAMES[mOption]; Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon); return new Guidance(title, description, breadcrumb, icon); }
@Override @NonNull public Guidance onCreateGuidance(@NonNull Bundle savedInstanceState) { Drawable icon = getActivity().getDrawable(R.drawable.ic_main_icon); return new Guidance(title, subtitle, "", null); }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String title = getResources().getString(R.string.dvr_channel_record_duration_dialog_title); Drawable icon = getResources().getDrawable(R.drawable.ic_dvr, null); return new Guidance(title, null, null, icon); }
@Override public Guidance onCreateGuidance(Bundle savedInstanceState) { String breadcrumb = mSeriesRecording.getTitle(); String title = mFragmentTitle; return new Guidance(title, null, breadcrumb, null); }