fixing some compilation errors

This commit is contained in:
tibbi 2021-11-23 13:32:04 +01:00
parent 6c5ec13278
commit c51d3d51e7
5 changed files with 16 additions and 6 deletions

View File

@ -135,7 +135,8 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
super.onResume()
if (mStoredTextColor != config.textColor || mStoredBackgroundColor != config.backgroundColor || mStoredAdjustedPrimaryColor != getAdjustedPrimaryColor()
|| mStoredDayCode != Formatter.getTodayCode() || mStoredDimPastEvents != config.dimPastEvents || mStoredHighlightWeekends != config.highlightWeekends
|| mStoredHighlightWeekendsColor != config.highlightWeekendsColor) {
|| mStoredHighlightWeekendsColor != config.highlightWeekendsColor
) {
updateViewPager()
}

View File

@ -90,8 +90,17 @@ class SettingsActivity : SimpleActivity() {
invalidateOptionsMenu()
arrayOf(
settings_color_customization_label, settings_general_settings_label, settings_reminders_label, settings_caldav_label, settings_new_events_label,
settings_weekly_view_label, settings_monthly_view_label, settings_event_lists_label, settings_widgets_label, settings_events_label, settings_migrating_label
settings_color_customization_label,
settings_general_settings_label,
settings_reminders_label,
settings_caldav_label,
settings_new_events_label,
settings_weekly_view_label,
settings_monthly_view_label,
settings_event_lists_label,
settings_widgets_label,
settings_events_label,
settings_migrating_label
).forEach {
it.setTextColor(getAdjustedPrimaryColor())
}

View File

@ -22,7 +22,7 @@ import com.simplemobiletools.commons.views.MyRecyclerView
import kotlinx.android.synthetic.main.event_list_item.view.*
class DayEventsAdapter(activity: SimpleActivity, val events: ArrayList<Event>, recyclerView: MyRecyclerView, itemClick: (Any) -> Unit) :
MyRecyclerViewAdapter(activity, recyclerView, null, itemClick) {
MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
private val allDayString = resources.getString(R.string.all_day)
private val replaceDescriptionWithLocation = activity.config.replaceDescription

View File

@ -31,7 +31,7 @@ import java.util.*
class EventListAdapter(
activity: SimpleActivity, var listItems: ArrayList<ListItem>, val allowLongClick: Boolean, val listener: RefreshRecyclerViewListener?,
recyclerView: MyRecyclerView, itemClick: (Any) -> Unit
) : MyRecyclerViewAdapter(activity, recyclerView, null, itemClick) {
) : MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
private val allDayString = resources.getString(R.string.all_day)
private val replaceDescription = activity.config.replaceDescription

View File

@ -23,7 +23,7 @@ import java.util.*
class ManageEventTypesAdapter(
activity: SimpleActivity, val eventTypes: ArrayList<EventType>, val listener: DeleteEventTypesListener?, recyclerView: MyRecyclerView,
itemClick: (Any) -> Unit
) : MyRecyclerViewAdapter(activity, recyclerView, null, itemClick) {
) : MyRecyclerViewAdapter(activity, recyclerView, itemClick) {
init {
setupDragListener(true)
}