From dac516ef326e9849d1fef06b314053e4d2081284 Mon Sep 17 00:00:00 2001 From: Ben Lin Date: Tue, 2 May 2017 13:32:27 -0700 Subject: [PATCH] Remove snippet regarding ContentProvider#notifyChange in documentation. For ContentProvider and DocumentsProvider, throwing an exception in their query methods will result in no Cursor returned to the remote side. Without a cursor, there is no way to listen in on changes. Removing the part regarding notifyChange since there's no established paradigm on which URI to listen/notify changes on. Test: Documentation change only. Bug: 37876119 Change-Id: I0739794a1e8182918758ba953251ed9a3268f227 --- core/java/android/app/AuthenticationRequiredException.java | 5 +---- core/java/android/app/RecoverableSecurityException.java | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/core/java/android/app/AuthenticationRequiredException.java b/core/java/android/app/AuthenticationRequiredException.java index 89609794a615d..04e5e0a8f8744 100644 --- a/core/java/android/app/AuthenticationRequiredException.java +++ b/core/java/android/app/AuthenticationRequiredException.java @@ -56,10 +56,7 @@ public final class AuthenticationRequiredException extends SecurityException imp * {@link Activity#setResult(int)} before finishing to * communicate the final status of the recovery. For example, * apps that observe {@link Activity#RESULT_OK} may choose to - * immediately retry their operation. If this exception was - * thrown from a {@link ContentProvider}, you should also send - * any relevant {@link ContentResolver#notifyChange} events to - * trigger reloading of data. + * immediately retry their operation. */ public AuthenticationRequiredException(Throwable cause, PendingIntent userAction) { super(cause.getMessage()); diff --git a/core/java/android/app/RecoverableSecurityException.java b/core/java/android/app/RecoverableSecurityException.java index a503a46a29dc1..6747004e81863 100644 --- a/core/java/android/app/RecoverableSecurityException.java +++ b/core/java/android/app/RecoverableSecurityException.java @@ -76,10 +76,7 @@ public final class RecoverableSecurityException extends SecurityException implem * {@link Activity#setResult(int)} before finishing to * communicate the final status of the recovery. For example, * apps that observe {@link Activity#RESULT_OK} may choose to - * immediately retry their operation. If this exception was - * thrown from a {@link ContentProvider}, you should also send - * any relevant {@link ContentResolver#notifyChange} events to - * trigger reloading of data. + * immediately retry their operation. */ public RecoverableSecurityException(Throwable cause, CharSequence userMessage, RemoteAction userAction) {