summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/ContentResolver.java
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2009-08-20 17:18:58 -0700
committerFred Quintana <fredq@google.com>2009-08-20 17:18:58 -0700
commit77709755b74bcc852cd511ff833c2827c0f0e1aa (patch)
treed526a9851433873588bf3504b1f2baa9e9555548 /core/java/android/content/ContentResolver.java
parent404780d62b8f6fe6787fca27cf36fe2c20b7220e (diff)
downloadframeworks_base-77709755b74bcc852cd511ff833c2827c0f0e1aa.zip
frameworks_base-77709755b74bcc852cd511ff833c2827c0f0e1aa.tar.gz
frameworks_base-77709755b74bcc852cd511ff833c2827c0f0e1aa.tar.bz2
- add a reset to EntityIterator to allow it to go back to the beginning
- clean up the debug printing of SyncResult
Diffstat (limited to 'core/java/android/content/ContentResolver.java')
-rw-r--r--core/java/android/content/ContentResolver.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java
index 239b3de..b915803 100644
--- a/core/java/android/content/ContentResolver.java
+++ b/core/java/android/content/ContentResolver.java
@@ -244,6 +244,13 @@ public abstract class ContentResolver {
return mInner.next();
}
+ public void reset() throws RemoteException {
+ if (mClientReleased) {
+ throw new IllegalStateException("this iterator is already closed");
+ }
+ mInner.reset();
+ }
+
public void close() {
mClient.release();
mInner.close();