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

Commit 23f58260 authored by Carlos Valdivia's avatar Carlos Valdivia
Browse files

We shouldn't delete accounts when a package is being updated.

Bug: 17158237
Change-Id: Icbf9e672a6a698737b08ed39c78a64c161a7b802
parent 43a2d061
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -265,8 +265,12 @@ public class AccountManagerService
        mContext.registerReceiver(new BroadcastReceiver() {
            @Override
            public void onReceive(Context context1, Intent intent) {
                // Don't delete accounts when updating a authenticator's
                // package.
                if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
                    purgeOldGrantsAll();
                }
            }
        }, intentFilter);

        IntentFilter userFilter = new IntentFilter();