rename EventsListener to EventUpdateListener

This commit is contained in:
tibbi 2016-11-28 22:19:51 +01:00
parent 157ab8557d
commit cc53dd0c12
4 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ import kotlinx.android.synthetic.main.activity_event.*
import org.joda.time.DateTime
import org.joda.time.DateTimeZone
class EventActivity : SimpleActivity(), DBHelper.EventsListener {
class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
private var mWasReminderInit = false
private var mWasEndDateSet = false
private var mWasEndTimeSet = false

View File

@ -28,7 +28,7 @@ import kotlinx.android.synthetic.main.top_navigation.view.*
import java.util.*
import kotlin.comparisons.compareBy
class DayFragment : Fragment(), DBHelper.EventsListener, DBHelper.GetEventsListener, EventsAdapter.ItemOperationsListener {
class DayFragment : Fragment(), DBHelper.EventUpdateListener, DBHelper.GetEventsListener, EventsAdapter.ItemOperationsListener {
private val EDIT_EVENT = 1
private var mTextColor = 0

View File

@ -27,7 +27,7 @@ import org.joda.time.DateTime
import java.util.*
import kotlin.comparisons.compareBy
class EventListFragment : Fragment(), DBHelper.GetEventsListener, DBHelper.EventsListener, EventListAdapter.ItemOperationsListener {
class EventListFragment : Fragment(), DBHelper.GetEventsListener, DBHelper.EventUpdateListener, EventListAdapter.ItemOperationsListener {
private val EDIT_EVENT = 1
var mListItems: ArrayList<ListItem> = ArrayList()

View File

@ -30,7 +30,7 @@ class DBHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, DB_V
private val COL_REPEAT_MONTH = "repeat_month"
private val COL_REPEAT_DAY = "repeat_day"
private var mEventsListener: EventsListener? = null
private var mEventsListener: EventUpdateListener? = null
private var context: Context? = null
companion object {
@ -39,7 +39,7 @@ class DBHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, DB_V
lateinit private var mDb: SQLiteDatabase
}
constructor(context: Context, callback: EventsListener?) : this(context) {
constructor(context: Context, callback: EventUpdateListener?) : this(context) {
mEventsListener = callback
this.context = context
}
@ -240,7 +240,7 @@ class DBHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, DB_V
return events
}
interface EventsListener {
interface EventUpdateListener {
fun eventInserted(event: Event)
fun eventUpdated(event: Event)