@Override
  protected void onResume() {
    super.onResume();

    mLocationViewModel.onResume(null);

    mLocationModel2.registerLocationUpdates();
  }
  @Override
  protected void onPause() {
    super.onPause();

    mLocationViewModel.onPause();

    mLocationModel2.unregisterLocationUpdates();

    GlobalARData.removeLocationListener(mLocationListener);
    GlobalARData.removeLocationListener(mLocationView);
  }