diff options
author | Alan Viverette <alanv@google.com> | 2015-05-14 14:24:36 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2015-05-14 14:24:36 -0700 |
commit | b12172ef473450da7d1ad6b3fcae4ac41bec2395 (patch) | |
tree | 6af132ced5ec62345213941b83dde7187a9d5686 | |
parent | 9cb90cbbf8fc91793dad1d1cb317079dbc7e8421 (diff) | |
download | frameworks_base-b12172ef473450da7d1ad6b3fcae4ac41bec2395.zip frameworks_base-b12172ef473450da7d1ad6b3fcae4ac41bec2395.tar.gz frameworks_base-b12172ef473450da7d1ad6b3fcae4ac41bec2395.tar.bz2 |
Update button visibility as a final step in DayPickerView construction
Previously it was only updated when the page was turned, but that listener
isn't called until the user turns the page.
Bug: 20701637
Change-Id: I06faf59660cda0e19d57766f4afd141e4a389b18
-rw-r--r-- | core/java/android/widget/DayPickerView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/widget/DayPickerView.java b/core/java/android/widget/DayPickerView.java index 334afab..a434317 100644 --- a/core/java/android/widget/DayPickerView.java +++ b/core/java/android/widget/DayPickerView.java @@ -176,6 +176,8 @@ class DayPickerView extends ViewGroup { } } }); + + updateButtonVisibility(mViewPager.getCurrentItem()); } private void updateButtonVisibility(int position) { |