public void onEnterFragment() { super.onEnterFragment(); setStepCompleted(true); SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); boolean framesOverlapped = preferences.getBoolean(CaptureFragment.PREFERENCES_FRAMES_OVERLAPPED, false); finishTextView.setVisibility(framesOverlapped ? TextView.GONE : TextView.VISIBLE); finishWithErrorsTextView.setVisibility(framesOverlapped ? TextView.VISIBLE : TextView.GONE); framesOverlapTextView.setText( Html.fromHtml(getString(R.string.finish_summary_overlapping_frames_message))); framesOverlapLayout.setVisibility(framesOverlapped ? TextView.VISIBLE : TextView.GONE); }
@Override public void onExitFragment() { super.onExitFragment(); setStepCompleted(false); }