Fix compile

pull/996/head
Alex Baker 5 years ago
parent e00cfb7028
commit 79ca62cbea

@ -56,7 +56,7 @@ public class CalendarPicker extends InjectingDialogFragment {
theme.applyToContext(getActivity()); theme.applyToContext(getActivity());
adapter = adapter =
new SingleCheckedArrayAdapter(getActivity(), calendarNames, theme.getThemeAccent()) { new SingleCheckedArrayAdapter(getActivity(), calendarNames) {
@Override @Override
protected int getDrawable() { protected int getDrawable() {
return R.drawable.ic_outline_event_24px; return R.drawable.ic_outline_event_24px;

@ -167,7 +167,7 @@ class LookAndFeel : InjectingPreferenceFragment() {
private fun setupLocationPickers() { private fun setupLocationPickers() {
val choices = val choices =
listOf(getString(R.string.map_provider_mapbox), getString(R.string.map_provider_google)) listOf(getString(R.string.map_provider_mapbox), getString(R.string.map_provider_google))
val singleCheckedArrayAdapter = SingleCheckedArrayAdapter(requireContext(), choices, themeAccent) val singleCheckedArrayAdapter = SingleCheckedArrayAdapter(requireContext(), choices)
val mapProviderPreference = findPreference(R.string.p_map_provider) val mapProviderPreference = findPreference(R.string.p_map_provider)
mapProviderPreference.onPreferenceClickListener = Preference.OnPreferenceClickListener { mapProviderPreference.onPreferenceClickListener = Preference.OnPreferenceClickListener {
dialogBuilder dialogBuilder

@ -26,7 +26,6 @@ import org.tasks.dialogs.DialogBuilder;
import org.tasks.injection.DialogFragmentComponent; import org.tasks.injection.DialogFragmentComponent;
import org.tasks.injection.ForActivity; import org.tasks.injection.ForActivity;
import org.tasks.injection.InjectingDialogFragment; import org.tasks.injection.InjectingDialogFragment;
import org.tasks.themes.Theme;
import org.tasks.ui.SingleCheckedArrayAdapter; import org.tasks.ui.SingleCheckedArrayAdapter;
import timber.log.Timber; import timber.log.Timber;
@ -39,7 +38,6 @@ public class BasicRecurrenceDialog extends InjectingDialogFragment {
@Inject @ForActivity Context context; @Inject @ForActivity Context context;
@Inject DialogBuilder dialogBuilder; @Inject DialogBuilder dialogBuilder;
@Inject RepeatRuleToString repeatRuleToString; @Inject RepeatRuleToString repeatRuleToString;
@Inject Theme theme;
public static BasicRecurrenceDialog newBasicRecurrenceDialog( public static BasicRecurrenceDialog newBasicRecurrenceDialog(
RepeatControlSet target, RRule rrule, long dueDate) { RepeatControlSet target, RRule rrule, long dueDate) {
@ -74,7 +72,7 @@ public class BasicRecurrenceDialog extends InjectingDialogFragment {
List<String> repeatOptions = List<String> repeatOptions =
newArrayList(context.getResources().getStringArray(R.array.repeat_options)); newArrayList(context.getResources().getStringArray(R.array.repeat_options));
SingleCheckedArrayAdapter adapter = SingleCheckedArrayAdapter adapter =
new SingleCheckedArrayAdapter(context, repeatOptions, theme.getThemeAccent()); new SingleCheckedArrayAdapter(context, repeatOptions);
int selected = 0; int selected = 0;
if (customPicked) { if (customPicked) {
adapter.insert(repeatRuleToString.toString(rrule), 0); adapter.insert(repeatRuleToString.toString(rrule), 0);

Loading…
Cancel
Save