fixing some compilation errors
This commit is contained in:
parent
6c5ec13278
commit
c51d3d51e7
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue