OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.content.browser.input; | 5 package org.chromium.ui; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 | 8 |
9 import org.chromium.content.R; | |
10 | |
11 import java.text.DateFormatSymbols; | 9 import java.text.DateFormatSymbols; |
12 import java.util.Arrays; | 10 import java.util.Arrays; |
13 import java.util.Calendar; | 11 import java.util.Calendar; |
14 import java.util.Locale; | 12 import java.util.Locale; |
15 import java.util.TimeZone; | 13 import java.util.TimeZone; |
16 | 14 |
17 public class MonthPicker extends TwoFieldDatePicker { | 15 public class MonthPicker extends TwoFieldDatePicker { |
18 private static final int MONTHS_NUMBER = 12; | 16 private static final int MONTHS_NUMBER = 12; |
19 | 17 |
20 private final String[] mShortMonths; | 18 private final String[] mShortMonths; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 106 } |
109 | 107 |
110 @Override | 108 @Override |
111 protected int getMinPositionInYear(int year) { | 109 protected int getMinPositionInYear(int year) { |
112 if (year == getMinDate().get(Calendar.YEAR)) { | 110 if (year == getMinDate().get(Calendar.YEAR)) { |
113 return getMinDate().get(Calendar.MONTH); | 111 return getMinDate().get(Calendar.MONTH); |
114 } | 112 } |
115 return 0; | 113 return 0; |
116 } | 114 } |
117 } | 115 } |
OLD | NEW |