From bdb9dd5def05e9561aa67c83f09ddffae9908393 Mon Sep 17 00:00:00 2001 From: Varun Shah Date: Tue, 15 Sep 2020 14:07:34 -0700 Subject: [PATCH] Update ContentResolver documentation. Fixes: 167394574 Test: n/a Change-Id: I3615887cd08f6dbe34a81e6fade1228111584880 --- core/java/android/content/ContentResolver.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java index b5eb043d847c0..32d3b5d8b4129 100644 --- a/core/java/android/content/ContentResolver.java +++ b/core/java/android/content/ContentResolver.java @@ -776,6 +776,10 @@ public abstract class ContentResolver implements ContentInterface { private static final int REMOTE_CONTENT_PROVIDER_TIMEOUT_MILLIS = CONTENT_PROVIDER_READY_TIMEOUT_MILLIS + CONTENT_PROVIDER_TIMEOUT_MILLIS; + /** + * Note: passing a {@code null} context here could lead to unexpected behavior in certain + * ContentResolver APIs so it is highly recommended to pass a non-null context here. + */ public ContentResolver(@Nullable Context context) { this(context, null); }