summaryrefslogtreecommitdiffstats
path: root/common/java/com/android/common/widget/CompositeCursorAdapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/java/com/android/common/widget/CompositeCursorAdapter.java')
-rw-r--r--common/java/com/android/common/widget/CompositeCursorAdapter.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/java/com/android/common/widget/CompositeCursorAdapter.java b/common/java/com/android/common/widget/CompositeCursorAdapter.java
index 114065f..dddbcf6 100644
--- a/common/java/com/android/common/widget/CompositeCursorAdapter.java
+++ b/common/java/com/android/common/widget/CompositeCursorAdapter.java
@@ -54,6 +54,10 @@ public abstract class CompositeCursorAdapter extends BaseAdapter {
public boolean getHasHeader() {
return hasHeader;
}
+
+ public boolean isEmpty() {
+ return count == 0;
+ }
}
private final Context mContext;
@@ -110,7 +114,7 @@ public abstract class CompositeCursorAdapter extends BaseAdapter {
/**
* Removes cursors for all partitions.
*/
- // TODO: Is this really what this is supposed to do? Just remove the cursors? Not close them?
+ // TODO: Is this really what this is supposed to do? Just remove the cursors? Not close them?
// Not remove the partitions themselves? Isn't this leaking?
public void clearPartitions() {