Your Name 7 years ago
parent
commit
613b3232ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/main/java/com/kuxuan/moneynote/utils/PickerUtil.java

+ 1 - 1
app/src/main/java/com/kuxuan/moneynote/utils/PickerUtil.java

52
         picker.setHeight(picker.getScreenHeightPixels()/2-250);
52
         picker.setHeight(picker.getScreenHeightPixels()/2-250);
53
         picker.setRangeStart(2010, 10, 14);
53
         picker.setRangeStart(2010, 10, 14);
54
         picker.setTitleText(mTitle);
54
         picker.setTitleText(mTitle);
55
-        picker.setRangeEnd(2020, 11, 11);
55
+        picker.setRangeEnd(mYear, mMonth, mDay);
56
         picker.setSelectedItem(mYear, mMonth,mDay);
56
         picker.setSelectedItem(mYear, mMonth,mDay);
57
         picker.setWeightEnable(true);
57
         picker.setWeightEnable(true);
58
         picker.setWheelModeEnable(true);
58
         picker.setWheelModeEnable(true);