Merge "[BugFix] acquireProvider maybe wait for timeout" am: bf7ab279a6 am: 2ee9e5dbb7 am: 25fb447edc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1999690 Change-Id: I48bc9e68457689f60d7825e015df47805398bb56 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -7030,7 +7030,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