diff options
| author | Varun Shah <varunshah@google.com> | 2020-09-15 14:07:34 -0700 |
|---|---|---|
| committer | Varun Shah <varunshah@google.com> | 2020-09-15 15:52:34 -0700 |
| commit | bdb9dd5def05e9561aa67c83f09ddffae9908393 (patch) | |
| tree | f60bd1ffc922f7af19599969ae1dc63fa9f15492 /core/java | |
| parent | e4a6bce20ae348b14ab2bd5478e06fc017ce9cfa (diff) | |
Update ContentResolver documentation.
Fixes: 167394574
Test: n/a
Change-Id: I3615887cd08f6dbe34a81e6fade1228111584880
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/ContentResolver.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java index b5eb043d847c..32d3b5d8b412 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); } |
