Update ContentResolver documentation.

Fixes: 167394574
Test: n/a
Change-Id: I3615887cd08f6dbe34a81e6fade1228111584880
This commit is contained in:
Varun Shah
2020-09-15 14:07:34 -07:00
parent e4a6bce20a
commit bdb9dd5def

View File

@@ -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);
}