rename EventTypeDialog to NewEventTypeDialog

This commit is contained in:
tibbi 2017-02-11 20:16:26 +01:00
parent e41010603f
commit 4d57c3df96
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ package com.simplemobiletools.calendar.activities
import android.os.Bundle
import com.simplemobiletools.calendar.R
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.interfaces.DeleteItemsListener
import com.simplemobiletools.calendar.models.EventType
@ -27,7 +27,7 @@ class ManageEventTypesActivity : SimpleActivity(), DeleteItemsListener {
}
private fun showEventTypeDialog(eventType: EventType? = null) {
EventTypeDialog(this, eventType) {
NewEventTypeDialog(this, eventType) {
getEventTypes()
}
}

View File

@ -16,7 +16,7 @@ import com.simplemobiletools.commons.extensions.toast
import com.simplemobiletools.commons.extensions.value
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
init {