Skip to content

Commit be03f45

Browse files
author
zengsong
committed
optimization code
1 parent bd30290 commit be03f45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pickerview/src/main/java/com/bigkoo/pickerview/view/OptionsPickerView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
public class OptionsPickerView<T> extends BasePickerView implements View.OnClickListener {
2222

23-
private WheelOptions wheelOptions;
23+
private WheelOptions<T> wheelOptions;
2424

2525
private static final String TAG_SUBMIT = "submit";
2626
private static final String TAG_CANCEL = "cancel";
@@ -76,7 +76,7 @@ private void initView(Context context) {
7676
final LinearLayout optionsPicker = (LinearLayout) findViewById(R.id.optionspicker);
7777
optionsPicker.setBackgroundColor(mPickerOptions.bgColorWheel);
7878

79-
wheelOptions = new WheelOptions(optionsPicker, mPickerOptions.isRestoreItem);
79+
wheelOptions = new WheelOptions<>(optionsPicker, mPickerOptions.isRestoreItem);
8080
if (mPickerOptions.optionsSelectChangeListener != null) {
8181
wheelOptions.setOptionsSelectChangeListener(mPickerOptions.optionsSelectChangeListener);
8282
}

0 commit comments

Comments
 (0)