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

Commit 4857c1d8 authored by Olawale Ogunwale's avatar Olawale Ogunwale Committed by Gerrit Code Review
Browse files

Merge "Fix lost singleton provider after force-stopping user or package."

parents d80f23e5 daf23d9c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -205,8 +205,11 @@ public final class ProviderMap {
    boolean collectForceStopProviders(String name, int appId,
            boolean doit, boolean evenPersistent, int userId,
            ArrayList<ContentProviderRecord> result) {
        boolean didSomething = collectForceStopProvidersLocked(name, appId, doit,
        boolean didSomething = false;
        if (userId == UserHandle.USER_ALL || userId == UserHandle.USER_OWNER) {
            didSomething = collectForceStopProvidersLocked(name, appId, doit,
                    evenPersistent, userId, mSingletonByClass, result);
        }
        if (!doit && didSomething) {
            return true;
        }