Пример #1
0
  @Override
  public void onPause() {
    // - Uninitialize camera on pause.
    uninitializeCamera();

    super.onPause();
  }
Пример #2
0
  @Override
  public void onResume() {
    super.onResume();

    // - Display camera preview.
    displayCameraPreview();

    // - Snack to enable internet if not.
    if (!AndroidUtils.isDataEnabled(getActivity())) {
      AndroidUtils.snackEnableData(getActivity(), getView());
    }
  }
Пример #3
0
 @Override
 public void onStart() {
   super.onStart();
   getActivity().setTitle(null);
 }