Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcb88c83 authored by Shreyas Basarge's avatar Shreyas Basarge
Browse files

onUpdateAccounts fix for SyncManager

When an account is added/removed, only
the EndPoints for that userId will be synced.

Bug: 26975747
Change-Id: Ibbf38dcc52e30672f02b4c20ea2eaeea2fcb51da
parent e8c9238d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -310,8 +310,8 @@ public class SyncManager {
    private final BroadcastReceiver mAccountsUpdatedReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context, Intent intent) {
            updateRunningAccounts(EndPoint.USER_ALL_PROVIDER_ALL_ACCOUNTS_ALL
                        /* sync all targets */);
            EndPoint target = new EndPoint(null, null, context.getUserId());
            updateRunningAccounts(target /* sync targets for user */);
        }
    };