summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2011-02-24 15:36:13 -0800
committerSvetoslav Ganov <svetoslavganov@google.com>2011-02-24 15:36:19 -0800
commit5f3f6ce154ca1a0075f8ca13872d74f935acbe3d (patch)
tree3c65a1085925ff151c861c0ef7e2039f98f1d80d /core/java/android
parenta28f6f11f22963e3679537e83f243edeaa5ee17c (diff)
downloadframeworks_base-5f3f6ce154ca1a0075f8ca13872d74f935acbe3d.zip
frameworks_base-5f3f6ce154ca1a0075f8ca13872d74f935acbe3d.tar.gz
frameworks_base-5f3f6ce154ca1a0075f8ca13872d74f935acbe3d.tar.bz2
Exposing the CalendarView of the DatePicker.
bug:3272194 1. Added a getter to DatePicker. Change-Id: If0c7fee4ab5f6abf6b12a02dbd5d519c00683115
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/widget/DatePicker.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/widget/DatePicker.java b/core/java/android/widget/DatePicker.java
index cd3862f..df32c51 100644
--- a/core/java/android/widget/DatePicker.java
+++ b/core/java/android/widget/DatePicker.java
@@ -366,12 +366,23 @@ public class DatePicker extends FrameLayout {
* Gets whether the {@link CalendarView} is shown.
*
* @return True if the calendar view is shown.
+ * @see #getCalendarView()
*/
public boolean getCalendarViewShown() {
return mCalendarView.isShown();
}
/**
+ * Gets the {@link CalendarView}.
+ *
+ * @return The calendar view.
+ * @see #getCalendarViewShown()
+ */
+ public CalendarView getCalendarView () {
+ return mCalendarView;
+ }
+
+ /**
* Sets whether the {@link CalendarView} is shown.
*
* @param shown True if the calendar view is to be shown.