Example #1
0
 private static void logout(Context context, boolean isLoginExpire) {
   HttpRequestClient.removeUserToken(context);
   LoginActivity_.intent(context)
       .mIsLoginExpire(isLoginExpire)
       .flags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK)
       .start();
 }
Example #2
0
 @AfterInject
 void autoLogin() {
   LoginResponse response = restoreUserLoginInfo();
   if (response != null && HttpRequestClient.hasUserToken(this)) {
     onLoginSuccess(response.getUserScope());
     return;
   }
 }