예제 #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();
   }
 }
예제 #2
0
 @Override
 public void onSignOutComplete() {
   dismissDialog();
   if (mGamesClient.isConnected()) mGamesClient.disconnect();
 }