mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-12 01:40:44 +01:00
rename EventsListener to EventUpdateListener
This commit is contained in:
parent
157ab8557d
commit
cc53dd0c12
@ -20,7 +20,7 @@ import kotlinx.android.synthetic.main.activity_event.*
|
|||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
import org.joda.time.DateTimeZone
|
import org.joda.time.DateTimeZone
|
||||||
|
|
||||||
class EventActivity : SimpleActivity(), DBHelper.EventsListener {
|
class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
||||||
private var mWasReminderInit = false
|
private var mWasReminderInit = false
|
||||||
private var mWasEndDateSet = false
|
private var mWasEndDateSet = false
|
||||||
private var mWasEndTimeSet = false
|
private var mWasEndTimeSet = false
|
||||||
|
@ -28,7 +28,7 @@ import kotlinx.android.synthetic.main.top_navigation.view.*
|
|||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlin.comparisons.compareBy
|
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 val EDIT_EVENT = 1
|
||||||
|
|
||||||
private var mTextColor = 0
|
private var mTextColor = 0
|
||||||
|
@ -27,7 +27,7 @@ import org.joda.time.DateTime
|
|||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlin.comparisons.compareBy
|
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
|
private val EDIT_EVENT = 1
|
||||||
|
|
||||||
var mListItems: ArrayList<ListItem> = ArrayList()
|
var mListItems: ArrayList<ListItem> = ArrayList()
|
||||||
|
@ -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_MONTH = "repeat_month"
|
||||||
private val COL_REPEAT_DAY = "repeat_day"
|
private val COL_REPEAT_DAY = "repeat_day"
|
||||||
|
|
||||||
private var mEventsListener: EventsListener? = null
|
private var mEventsListener: EventUpdateListener? = null
|
||||||
private var context: Context? = null
|
private var context: Context? = null
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
@ -39,7 +39,7 @@ class DBHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, DB_V
|
|||||||
lateinit private var mDb: SQLiteDatabase
|
lateinit private var mDb: SQLiteDatabase
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context, callback: EventsListener?) : this(context) {
|
constructor(context: Context, callback: EventUpdateListener?) : this(context) {
|
||||||
mEventsListener = callback
|
mEventsListener = callback
|
||||||
this.context = context
|
this.context = context
|
||||||
}
|
}
|
||||||
@ -240,7 +240,7 @@ class DBHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, DB_V
|
|||||||
return events
|
return events
|
||||||
}
|
}
|
||||||
|
|
||||||
interface EventsListener {
|
interface EventUpdateListener {
|
||||||
fun eventInserted(event: Event)
|
fun eventInserted(event: Event)
|
||||||
|
|
||||||
fun eventUpdated(event: Event)
|
fun eventUpdated(event: Event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user