diff options
Diffstat (limited to 'core/java/android/widget/ActivityChooserModel.java')
-rw-r--r-- | core/java/android/widget/ActivityChooserModel.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/widget/ActivityChooserModel.java b/core/java/android/widget/ActivityChooserModel.java index 91d7447..1578154 100644 --- a/core/java/android/widget/ActivityChooserModel.java +++ b/core/java/android/widget/ActivityChooserModel.java @@ -764,6 +764,16 @@ public class ActivityChooserModel extends DataSetObservable { } /** + * Gets whether the given observer is already registered. + * + * @param observer The observer. + * @return True if already registered. + */ + public boolean isRegisteredObserver(DataSetObserver observer) { + return mObservers.contains(observer); + } + + /** * Represents a record in the history. */ public final static class HistoricalRecord { |