Merge "[BugFix] acquireProvider maybe wait for timeout" am: bf7ab279a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1999690 Change-Id: I4b8b8c57f3f8efebceb8751a5ea304014f252a76 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -7026,7 +7026,13 @@ public final class ActivityThread extends ClientTransactionHandler
|
|||||||
// local, we'll need to wait for the publishing of the provider.
|
// local, we'll need to wait for the publishing of the provider.
|
||||||
if (holder != null && holder.provider == null && !holder.mLocal) {
|
if (holder != null && holder.provider == null && !holder.mLocal) {
|
||||||
synchronized (key.mLock) {
|
synchronized (key.mLock) {
|
||||||
key.mLock.wait(ContentResolver.CONTENT_PROVIDER_READY_TIMEOUT_MILLIS);
|
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;
|
holder = key.mHolder;
|
||||||
}
|
}
|
||||||
if (holder != null && holder.provider == null) {
|
if (holder != null && holder.provider == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user