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(); }
@AfterInject void autoLogin() { LoginResponse response = restoreUserLoginInfo(); if (response != null && HttpRequestClient.hasUserToken(this)) { onLoginSuccess(response.getUserScope()); return; } }