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

Commit 605e7192 authored by Carlos Valdivia's avatar Carlos Valdivia Committed by Android (Google) Code Review
Browse files

Merge "We shouldn't delete accounts when a package is being updated." into lmp-dev

parents 7492a4c1 23f58260
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();