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

Commit a12ac54c authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 25596374: Merge "[ActivityManager] Prevent provider from been created twice."

* commit '25596374':
  [ActivityManager] Prevent provider from been created twice.
parents 6151b118 25596374
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -9484,12 +9484,14 @@ public final class ActivityManagerService extends ActivityManagerNative
                            if (DEBUG_PROVIDER) {
                                Slog.d(TAG, "Installing in existing process " + proc);
                            }
                            if (!proc.pubProviders.containsKey(cpi.name)) {
                                checkTime(startTime, "getContentProviderImpl: scheduling install");
                                proc.pubProviders.put(cpi.name, cpr);
                                try {
                                    proc.thread.scheduleInstallProvider(cpi);
                                } catch (RemoteException e) {
                                }
                            }
                        } else {
                            checkTime(startTime, "getContentProviderImpl: before start process");
                            proc = startProcessLocked(cpi.processName,