title: Recursive entry to executePendingTransactions on using GoogleApiClient in Fragment
body: <p>I am trying to use Place Autocomplete API in my app. I have a main <code>Activity</code>. I have a <code>Fragment</code> which is a part of <code>MainActivity</code>. In <code>OnViewCreated()</code> on this <code>Fragment</code>.</p>
  
  <pre><code> private void rebuildGoogleApiClient() {
      // When we build the GoogleApiClient we specify where connected and connection failed
      // callbacks should be returned and which Google APIs our app uses.
      mGoogleApiClient = new GoogleApiClient.Builder(getActivity())
              .enableAutoManage(activity, 0 /* clientId */, this)
              .addConnectionCallbacks(this)
              .addApi(Places.GEO_DATA_API)
              .build();
  }
  </code></pre>
  
  <p>StackTrace:</p>
  
  <pre><code>Caused by: java.lang.IllegalStateException: Recursive entry to executePendingTransactions
          at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1471)
          at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:488)
          at com.google.android.gms.common.api.zzl.zza(Unknown Source)
          at com.google.android.gms.common.api.GoogleApiClient$Builder.zzkL(Unknown Source)
          at com.google.android.gms.common.api.GoogleApiClient$Builder.build(Unknown Source)
          at com.app.projectpapri.Fragments.LocationScreen.rebuildGoogleApiClient(LocationScreen.java:69)
          at com.app.projectpapri.Fragments.LocationScreen.onViewCreated(LocationScreen.java:93)
          at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:971)
          at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1136)
          at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:739)
          at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1499)
          at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:548)
          at com.app.projectpapri.core.BaseActivity.onStart(BaseActivity.java:38)
          at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1243)
  </code></pre>
  
  <p>Any help will be appreciated.</p>