@Override
 public void onPause() {
   super.onPause();
   if (mGoogleApiClient.isConnected()) {
     mGoogleApiClient.disconnect();
   }
 }
Exemplo n.º 2
0
 @Override
 protected void onPause() {
   lifecycleSubject.onNext(LifecycleEvent.PAUSE);
   super.onPause();
 }