rename EventTypeDialog to NewEventTypeDialog
This commit is contained in:
parent
e41010603f
commit
4d57c3df96
|
@ -3,7 +3,7 @@ package com.simplemobiletools.calendar.activities
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import com.simplemobiletools.calendar.R
|
import com.simplemobiletools.calendar.R
|
||||||
import com.simplemobiletools.calendar.adapters.EventTypeAdapter
|
import com.simplemobiletools.calendar.adapters.EventTypeAdapter
|
||||||
import com.simplemobiletools.calendar.dialogs.EventTypeDialog
|
import com.simplemobiletools.calendar.dialogs.NewEventTypeDialog
|
||||||
import com.simplemobiletools.calendar.helpers.DBHelper
|
import com.simplemobiletools.calendar.helpers.DBHelper
|
||||||
import com.simplemobiletools.calendar.interfaces.DeleteItemsListener
|
import com.simplemobiletools.calendar.interfaces.DeleteItemsListener
|
||||||
import com.simplemobiletools.calendar.models.EventType
|
import com.simplemobiletools.calendar.models.EventType
|
||||||
|
@ -27,7 +27,7 @@ class ManageEventTypesActivity : SimpleActivity(), DeleteItemsListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showEventTypeDialog(eventType: EventType? = null) {
|
private fun showEventTypeDialog(eventType: EventType? = null) {
|
||||||
EventTypeDialog(this, eventType) {
|
NewEventTypeDialog(this, eventType) {
|
||||||
getEventTypes()
|
getEventTypes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ import com.simplemobiletools.commons.extensions.toast
|
||||||
import com.simplemobiletools.commons.extensions.value
|
import com.simplemobiletools.commons.extensions.value
|
||||||
import kotlinx.android.synthetic.main.dialog_event_type.view.*
|
import kotlinx.android.synthetic.main.dialog_event_type.view.*
|
||||||
|
|
||||||
class EventTypeDialog(val activity: Activity, var eventType: EventType? = null, val callback: () -> Unit) : AlertDialog.Builder(activity) {
|
class NewEventTypeDialog(val activity: Activity, var eventType: EventType? = null, val callback: () -> Unit) : AlertDialog.Builder(activity) {
|
||||||
var isNewEvent = eventType == null
|
var isNewEvent = eventType == null
|
||||||
|
|
||||||
init {
|
init {
|
Loading…
Reference in New Issue