Prepare tests for impending robolectric merge
Some ShadowUserManager function moved into the basic shadow in robolectric proper and has been removed from the Settings ShadowUserManager. Test: make -j56 RunSettingsRoboTests Change-Id: I38647dae5d16bc79bc7925ca139c9362a2035393
This commit is contained in:
@@ -94,8 +94,7 @@ public class AccountDetailDashboardFragment extends DashboardFragment {
|
||||
void finishIfAccountMissing() {
|
||||
final Context context = getContext();
|
||||
final UserManager um = context.getSystemService(UserManager.class);
|
||||
final AccountManager accountManager = (AccountManager) context.getSystemService(
|
||||
AccountManager.class);
|
||||
final AccountManager accountManager = context.getSystemService(AccountManager.class);
|
||||
for (UserHandle userHandle : um.getUserProfiles()) {
|
||||
for (Account account : accountManager.getAccountsAsUser(userHandle.getIdentifier())) {
|
||||
if (account.equals(mAccount)) {
|
||||
|
Reference in New Issue
Block a user