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.picker; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 | 8 |
9 import org.chromium.content.R; | 9 import org.chromium.ui.R; |
10 | 10 |
11 import java.text.DateFormatSymbols; | 11 import java.text.DateFormatSymbols; |
12 import java.util.Arrays; | 12 import java.util.Arrays; |
13 import java.util.Calendar; | 13 import java.util.Calendar; |
14 import java.util.Locale; | 14 import java.util.Locale; |
15 import java.util.TimeZone; | 15 import java.util.TimeZone; |
16 | 16 |
17 public class MonthPicker extends TwoFieldDatePicker { | 17 public class MonthPicker extends TwoFieldDatePicker { |
18 private static final int MONTHS_NUMBER = 12; | 18 private static final int MONTHS_NUMBER = 12; |
19 | 19 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 | 109 |
110 @Override | 110 @Override |
111 protected int getMinPositionInYear(int year) { | 111 protected int getMinPositionInYear(int year) { |
112 if (year == getMinDate().get(Calendar.YEAR)) { | 112 if (year == getMinDate().get(Calendar.YEAR)) { |
113 return getMinDate().get(Calendar.MONTH); | 113 return getMinDate().get(Calendar.MONTH); |
114 } | 114 } |
115 return 0; | 115 return 0; |
116 } | 116 } |
117 } | 117 } |
OLD | NEW |