summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-03-08 12:43:15 -0800
committerSvetoslav <svetoslavganov@google.com>2013-03-08 13:31:53 -0800
commite10837f444c3da40a50a269e696afac63729bce3 (patch)
tree244b56e48cbe4b7bed727aaaa92da51bbdcb7947 /core/java/android/widget
parenteab5a3491b16ec9dd8c010de3fce1cc9f11afb55 (diff)
downloadframeworks_base-e10837f444c3da40a50a269e696afac63729bce3.zip
frameworks_base-e10837f444c3da40a50a269e696afac63729bce3.tar.gz
frameworks_base-e10837f444c3da40a50a269e696afac63729bce3.tar.bz2
[DO NOT MERGE] DatePickerDialog title initially incorrect if calendar view shown.
If the calendar view of the date picker dialog is shown we do not use a formatted date as the dialog title since the calendar view shows it, instead we show a static "Set date" title. However, the initial state of the date picker dialog on a tablet has a formatted date since the date picker widget does not do a correct check whether the calendar view is shown which returns a false negative resulting in a title with a formatted date being added since the dialog thinks it has no calendar view. Change-Id: Ibf4c433b34ab1ee1bc1dc386689664a32283fb6a
Diffstat (limited to 'core/java/android/widget')
-rw-r--r--core/java/android/widget/DatePicker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/DatePicker.java b/core/java/android/widget/DatePicker.java
index 07d3a7a..8f515f5 100644
--- a/core/java/android/widget/DatePicker.java
+++ b/core/java/android/widget/DatePicker.java
@@ -419,7 +419,7 @@ public class DatePicker extends FrameLayout {
* @see #getCalendarView()
*/
public boolean getCalendarViewShown() {
- return mCalendarView.isShown();
+ return (mCalendarView.getVisibility() == View.VISIBLE);
}
/**