rename RepeatTypePickerDialog to RepeatLimitTypePickerDialog
This commit is contained in:
parent
d8b32fa066
commit
ec37fb5f50
|
@ -12,7 +12,7 @@ import android.view.WindowManager
|
|||
import com.simplemobiletools.calendar.R
|
||||
import com.simplemobiletools.calendar.dialogs.DeleteEventDialog
|
||||
import com.simplemobiletools.calendar.dialogs.RepeatRuleWeeklyDialog
|
||||
import com.simplemobiletools.calendar.dialogs.RepeatTypePickerDialog
|
||||
import com.simplemobiletools.calendar.dialogs.RepeatLimitTypePickerDialog
|
||||
import com.simplemobiletools.calendar.dialogs.SelectEventTypeDialog
|
||||
import com.simplemobiletools.calendar.extensions.*
|
||||
import com.simplemobiletools.calendar.helpers.*
|
||||
|
@ -182,7 +182,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||
|
||||
private fun showRepetitionTypePicker() {
|
||||
hideKeyboard()
|
||||
RepeatTypePickerDialog(this, mRepeatLimit, mEventStartDateTime.seconds()) {
|
||||
RepeatLimitTypePickerDialog(this, mRepeatLimit, mEventStartDateTime.seconds()) {
|
||||
setRepeatLimit(it)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,17 +13,17 @@ import com.simplemobiletools.calendar.helpers.Formatter
|
|||
import com.simplemobiletools.commons.extensions.isLollipopPlus
|
||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||
import com.simplemobiletools.commons.extensions.value
|
||||
import kotlinx.android.synthetic.main.dialog_repeat_type_picker.view.*
|
||||
import kotlinx.android.synthetic.main.dialog_repeat_limit_type_picker.view.*
|
||||
import org.joda.time.DateTime
|
||||
import java.util.*
|
||||
|
||||
class RepeatTypePickerDialog(val activity: Activity, var repeatLimit: Int, val startTS: Int, val callback: (repeatLimit: Int) -> Unit) :
|
||||
class RepeatLimitTypePickerDialog(val activity: Activity, var repeatLimit: Int, val startTS: Int, val callback: (repeatLimit: Int) -> Unit) :
|
||||
AlertDialog.Builder(activity) {
|
||||
lateinit var dialog: AlertDialog
|
||||
var view: View
|
||||
|
||||
init {
|
||||
view = activity.layoutInflater.inflate(R.layout.dialog_repeat_type_picker, null).apply {
|
||||
view = activity.layoutInflater.inflate(R.layout.dialog_repeat_limit_type_picker, null).apply {
|
||||
repeat_type_date.setOnClickListener { showRepetitionLimitDialog() }
|
||||
repeat_type_forever.setOnClickListener { callback(0); dialog.dismiss() }
|
||||
repeat_type_count.setOnClickListener { dialog_radio_view.check(R.id.repeat_type_x_times) }
|
Loading…
Reference in New Issue