mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
hide the keyboard after confirming the custom reminder
This commit is contained in:
@@ -6,6 +6,7 @@ import android.view.LayoutInflater
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.view.WindowManager
|
import android.view.WindowManager
|
||||||
import com.simplemobiletools.calendar.R
|
import com.simplemobiletools.calendar.R
|
||||||
|
import com.simplemobiletools.commons.extensions.hideKeyboard
|
||||||
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
import com.simplemobiletools.commons.extensions.setupDialogStuff
|
||||||
import com.simplemobiletools.commons.extensions.value
|
import com.simplemobiletools.commons.extensions.value
|
||||||
import kotlinx.android.synthetic.main.dialog_custom_event_reminder.view.*
|
import kotlinx.android.synthetic.main.dialog_custom_event_reminder.view.*
|
||||||
@@ -31,6 +32,7 @@ class CustomEventReminderDialog(val activity: Activity, val callback: (minutes:
|
|||||||
val multiplier = getMultiplier(view.dialog_radio_view.checkedRadioButtonId)
|
val multiplier = getMultiplier(view.dialog_radio_view.checkedRadioButtonId)
|
||||||
val minutes = Integer.valueOf(if (value.isEmpty()) "0" else value)
|
val minutes = Integer.valueOf(if (value.isEmpty()) "0" else value)
|
||||||
callback.invoke(minutes * multiplier)
|
callback.invoke(minutes * multiplier)
|
||||||
|
activity.hideKeyboard()
|
||||||
dialog.dismiss()
|
dialog.dismiss()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user