package de.dotwee.rgb.canteen.model.helper;

import android.content.Context;
import android.widget.ArrayAdapter;

import java.util.List;

/**
 * Created by lukas on 19.11.2016.
 */
public class SpinnerHelper {
    private static final String TAG = SpinnerHelper.class.getSimpleName();

    public static ArrayAdapter<String> load(List<String> values, Context applicationContext) {
        ArrayAdapter<String> stringArrayAdapter = new ArrayAdapter<String>(
                applicationContext.getApplicationContext(), android.R.layout.simple_spinner_item, values
        );

        stringArrayAdapter.setDropDownViewResource(
                android.R.layout.simple_spinner_dropdown_item
        );

        return stringArrayAdapter;
    }
}

@@ -441,22 +441,16 @@
 Adapter%3C
-String
 %3E(%0A     

Remove explicit type argument since java defines declares it itself