summaryrefslogtreecommitdiff
path: root/core/java/android/content/ContentResolver.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-09-11 18:13:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-11 18:13:17 +0000
commitc1cf491d160f8feb74b24d4ebb4e39324850cf61 (patch)
tree4ced65790df31347b1e5638b9e88e24912d7c4ec /core/java/android/content/ContentResolver.java
parentb5f694f683cb85b308f3733a3507a98fbff0532c (diff)
parentb3ac67a0ece71bcf484dd92914dc3599dadffb05 (diff)
Merge "More on issue #10130785: Restore silence and vibrate settings..." into klp-dev
Diffstat (limited to 'core/java/android/content/ContentResolver.java')
-rw-r--r--core/java/android/content/ContentResolver.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java
index 995ca97ff1e3..f250029153f6 100644
--- a/core/java/android/content/ContentResolver.java
+++ b/core/java/android/content/ContentResolver.java
@@ -548,14 +548,16 @@ public abstract class ContentResolver {
* it to its local non-canonical form. This can be useful in some cases where
* you know that you will only be using the Uri in the current environment and
* want to avoid any possible overhead when using it with the content
- * provider.
+ * provider or want to verify that the referenced data exists at all in the
+ * new environment.
*
* @param url The canonical {@link Uri} that is to be convered back to its
* non-canonical form.
*
- * @return Returns the non-canonical representation of <var>url</var>. This
- * function never returns null; if there is no conversion to be done, it returns
- * the same Uri that was provided.
+ * @return Returns the non-canonical representation of <var>url</var>. This will
+ * return null if data identified by the canonical Uri can not be found in
+ * the current environment; callers must always check for null and deal with
+ * that by appropriately falling back to an alternative.
*
* @see #canonicalize
*/