Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dac516ef authored by Ben Lin's avatar Ben Lin
Browse files

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
parent ba9b2ce2
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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());
+1 −4
Original line number Diff line number Diff line
@@ -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) {