Ejemplo n.º 1
0
 void killConnections(int whatClients) {
   if ((whatClients & CLIENT_GAMES) != 0 && mGamesClient != null && mGamesClient.isConnected()) {
     mConnectedClients &= ~CLIENT_GAMES;
     mGamesClient.disconnect();
   }
   if ((whatClients & CLIENT_PLUS) != 0 && mPlusClient != null && mPlusClient.isConnected()) {
     mConnectedClients &= ~CLIENT_PLUS;
     mPlusClient.disconnect();
   }
   if ((whatClients & CLIENT_APPSTATE) != 0
       && mAppStateClient != null
       && mAppStateClient.isConnected()) {
     mConnectedClients &= ~CLIENT_APPSTATE;
     mAppStateClient.disconnect();
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onSignOutComplete() {
   dismissDialog();
   if (mGamesClient.isConnected()) mGamesClient.disconnect();
 }