Ejemplo n.º 1
0
 protected void unsafeTransitionToStageEndpoints(
     String authServerEndpoint, String tokenServerEndpoint) {
   try {
     getReadingListPrefs().edit().clear().commit();
   } catch (UnsupportedEncodingException | GeneralSecurityException e) {
     // Ignore.
   }
   try {
     getSyncPrefs().edit().clear().commit();
   } catch (UnsupportedEncodingException | GeneralSecurityException e) {
     // Ignore.
   }
   State state = getState();
   setState(state.makeSeparatedState());
   accountManager.setUserData(account, ACCOUNT_KEY_IDP_SERVER, authServerEndpoint);
   accountManager.setUserData(account, ACCOUNT_KEY_TOKEN_SERVER, tokenServerEndpoint);
   ContentResolver.setIsSyncable(account, BrowserContract.READING_LIST_AUTHORITY, 1);
 }