mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 20:30:58 +01:00
removing some more redundant code
This commit is contained in:
parent
ce3123811e
commit
56f4ba4b41
@ -20,7 +20,6 @@ import com.simplemobiletools.commons.adapters.MyRecyclerViewAdapter
|
||||
import com.simplemobiletools.commons.extensions.adjustAlpha
|
||||
import com.simplemobiletools.commons.extensions.applyColorFilter
|
||||
import com.simplemobiletools.commons.extensions.beVisibleIf
|
||||
import com.simplemobiletools.commons.helpers.LOWER_ALPHA
|
||||
import com.simplemobiletools.commons.helpers.MEDIUM_ALPHA
|
||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
|
||||
@ -165,11 +164,6 @@ class EventListAdapter(
|
||||
private fun setupListSectionDay(view: View, listSectionDay: ListSectionDay) {
|
||||
view.event_section_title.apply {
|
||||
text = listSectionDay.title
|
||||
var color = if (listSectionDay.isToday && !isPrintVersion) adjustedPrimaryColor else textColor
|
||||
if (dimPastEvents && listSectionDay.isPastSection && !isPrintVersion) {
|
||||
color = color.adjustAlpha(LOWER_ALPHA)
|
||||
}
|
||||
|
||||
val dayColor = if (listSectionDay.isToday) adjustedPrimaryColor else textColor
|
||||
setTextColor(dayColor)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user