code: @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
    public void onStop() {
      if (navigation != null) {
        navigation.removeProgressChangeListener(progressChangeListener);
      }
    }
docs: Call in {@link FragmentActivity#onStop()} to properly remove the {@link ProgressChangeListener}
  for the camera and prevent any leaks or further updates.