diff --git a/app/src/main/java/org/tasks/calendars/CalendarPicker.java b/app/src/main/java/org/tasks/calendars/CalendarPicker.java index 6f453657f..629138bc1 100644 --- a/app/src/main/java/org/tasks/calendars/CalendarPicker.java +++ b/app/src/main/java/org/tasks/calendars/CalendarPicker.java @@ -56,7 +56,7 @@ public class CalendarPicker extends InjectingDialogFragment { theme.applyToContext(getActivity()); adapter = - new SingleCheckedArrayAdapter(getActivity(), calendarNames, theme.getThemeAccent()) { + new SingleCheckedArrayAdapter(getActivity(), calendarNames) { @Override protected int getDrawable() { return R.drawable.ic_outline_event_24px; diff --git a/app/src/main/java/org/tasks/preferences/fragments/LookAndFeel.kt b/app/src/main/java/org/tasks/preferences/fragments/LookAndFeel.kt index 448bbcaf6..12f016c00 100644 --- a/app/src/main/java/org/tasks/preferences/fragments/LookAndFeel.kt +++ b/app/src/main/java/org/tasks/preferences/fragments/LookAndFeel.kt @@ -167,7 +167,7 @@ class LookAndFeel : InjectingPreferenceFragment() { private fun setupLocationPickers() { val choices = 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) mapProviderPreference.onPreferenceClickListener = Preference.OnPreferenceClickListener { dialogBuilder diff --git a/app/src/main/java/org/tasks/repeats/BasicRecurrenceDialog.java b/app/src/main/java/org/tasks/repeats/BasicRecurrenceDialog.java index 8a897bd78..082eab7a5 100644 --- a/app/src/main/java/org/tasks/repeats/BasicRecurrenceDialog.java +++ b/app/src/main/java/org/tasks/repeats/BasicRecurrenceDialog.java @@ -26,7 +26,6 @@ import org.tasks.dialogs.DialogBuilder; import org.tasks.injection.DialogFragmentComponent; import org.tasks.injection.ForActivity; import org.tasks.injection.InjectingDialogFragment; -import org.tasks.themes.Theme; import org.tasks.ui.SingleCheckedArrayAdapter; import timber.log.Timber; @@ -39,7 +38,6 @@ public class BasicRecurrenceDialog extends InjectingDialogFragment { @Inject @ForActivity Context context; @Inject DialogBuilder dialogBuilder; @Inject RepeatRuleToString repeatRuleToString; - @Inject Theme theme; public static BasicRecurrenceDialog newBasicRecurrenceDialog( RepeatControlSet target, RRule rrule, long dueDate) { @@ -74,7 +72,7 @@ public class BasicRecurrenceDialog extends InjectingDialogFragment { List repeatOptions = newArrayList(context.getResources().getStringArray(R.array.repeat_options)); SingleCheckedArrayAdapter adapter = - new SingleCheckedArrayAdapter(context, repeatOptions, theme.getThemeAccent()); + new SingleCheckedArrayAdapter(context, repeatOptions); int selected = 0; if (customPicked) { adapter.insert(repeatRuleToString.toString(rrule), 0);