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

Commit bf7ab279 authored by Jing Ji's avatar Jing Ji Committed by Gerrit Code Review
Browse files

Merge "[BugFix] acquireProvider maybe wait for timeout"

parents a5ef7d77 036d3ce1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -7026,7 +7026,13 @@ public final class ActivityThread extends ClientTransactionHandler
                // local, we'll need to wait for the publishing of the provider.
                if (holder != null && holder.provider == null && !holder.mLocal) {
                    synchronized (key.mLock) {
                        if (key.mHolder != null) {
                            if (DEBUG_PROVIDER) {
                                Slog.i(TAG, "already received provider: " + auth);
                            }
                        } else {
                            key.mLock.wait(ContentResolver.CONTENT_PROVIDER_READY_TIMEOUT_MILLIS);
                        }
                        holder = key.mHolder;
                    }
                    if (holder != null && holder.provider == null) {