OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 import android.view.LayoutInflater; | 8 import android.view.LayoutInflater; |
9 import android.view.View; | 9 import android.view.View; |
10 import android.view.ViewGroup; | 10 import android.view.ViewGroup; |
11 import android.widget.ArrayAdapter; | 11 import android.widget.ArrayAdapter; |
12 import android.widget.TextView; | 12 import android.widget.TextView; |
13 | 13 |
14 import org.chromium.content.R; | |
15 | |
16 import java.util.List; | 14 import java.util.List; |
17 | 15 |
18 /** | 16 /** |
19 * Date/time suggestion adapter for the suggestion dialog. | 17 * Date/time suggestion adapter for the suggestion dialog. |
20 */ | 18 */ |
21 class DateTimeSuggestionListAdapter extends ArrayAdapter<DateTimeSuggestion> { | 19 class DateTimeSuggestionListAdapter extends ArrayAdapter<DateTimeSuggestion> { |
22 private final Context mContext; | 20 private final Context mContext; |
23 | 21 |
24 DateTimeSuggestionListAdapter(Context context, List<DateTimeSuggestion> obje
cts) { | 22 DateTimeSuggestionListAdapter(Context context, List<DateTimeSuggestion> obje
cts) { |
25 super(context, R.layout.date_time_suggestion, objects); | 23 super(context, R.layout.date_time_suggestion, objects); |
(...skipping 19 matching lines...) Expand all Loading... |
45 } | 43 } |
46 | 44 |
47 return layout; | 45 return layout; |
48 } | 46 } |
49 | 47 |
50 @Override | 48 @Override |
51 public int getCount() { | 49 public int getCount() { |
52 return super.getCount() + 1; | 50 return super.getCount() + 1; |
53 } | 51 } |
54 } | 52 } |
OLD | NEW |