File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
tests/coretests/src/android/accounts Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ private UserAccounts initUser(int userId) {
261261 accounts = new UserAccounts (mContext , userId );
262262 mUsers .append (userId , accounts );
263263 purgeOldGrants (accounts );
264+ mAuthenticatorCache .invalidateCache (accounts .userId );
264265 validateAccountsAndPopulateCache (accounts );
265266 }
266267 return accounts ;
@@ -300,8 +301,6 @@ private void purgeOldGrants(UserAccounts accounts) {
300301 }
301302
302303 private void validateAccountsAndPopulateCache (UserAccounts accounts ) {
303- mAuthenticatorCache .invalidateCache (accounts .userId );
304-
305304 final HashSet <AuthenticatorDescription > knownAuth = Sets .newHashSet ();
306305 for (RegisteredServicesCache .ServiceInfo <AuthenticatorDescription > service :
307306 mAuthenticatorCache .getAllServices (accounts .userId )) {
Original file line number Diff line number Diff line change @@ -223,6 +223,10 @@ public void setListener(
223223 final RegisteredServicesCacheListener <AuthenticatorDescription > listener ,
224224 final Handler handler ) {
225225 }
226+
227+ @ Override
228+ public void invalidateCache (int userId ) {
229+ }
226230 }
227231
228232 static public class MyMockContext extends MockContext {
You can’t perform that action at this time.
0 commit comments