remove the item decoration from event types list

This commit is contained in:
tibbi 2017-02-12 00:08:07 +01:00
parent d9bf97e509
commit c48f6d2e82
1 changed files with 1 additions and 7 deletions

View File

@ -9,7 +9,6 @@ import com.simplemobiletools.calendar.interfaces.DeleteItemsListener
import com.simplemobiletools.calendar.models.EventType import com.simplemobiletools.calendar.models.EventType
import com.simplemobiletools.commons.extensions.toast import com.simplemobiletools.commons.extensions.toast
import com.simplemobiletools.commons.extensions.updateTextColors import com.simplemobiletools.commons.extensions.updateTextColors
import com.simplemobiletools.commons.views.RecyclerViewDivider
import kotlinx.android.synthetic.main.activity_manage_event_types.* import kotlinx.android.synthetic.main.activity_manage_event_types.*
import java.util.* import java.util.*
@ -41,14 +40,9 @@ class ManageEventTypesActivity : SimpleActivity(), DeleteItemsListener {
} }
private fun gotEventTypes(eventTypes: List<EventType>) { private fun gotEventTypes(eventTypes: List<EventType>) {
val eventTypesAdapter = EventTypeAdapter(this, eventTypes, this) { manage_event_types_list.adapter = EventTypeAdapter(this, eventTypes, this) {
showEventTypeDialog(it) showEventTypeDialog(it)
} }
manage_event_types_list.apply {
this@apply.adapter = eventTypesAdapter
addItemDecoration(RecyclerViewDivider(context))
}
} }
override fun deleteItems(ids: ArrayList<Int>) { override fun deleteItems(ids: ArrayList<Int>) {