mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 20:30:58 +01:00
fixing some keyboard hiding related issues
This commit is contained in:
parent
0b1b32ca5d
commit
541d2fc42b
@ -70,7 +70,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:d46a47635d'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:b50991ce49'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
|
@ -1170,13 +1170,14 @@ class EventActivity : SimpleActivity() {
|
||||
private fun storeEvent(wasRepeatable: Boolean) {
|
||||
if (mEvent.id == null || mEvent.id == null) {
|
||||
eventsHelper.insertEvent(mEvent, true, true) {
|
||||
hideKeyboard()
|
||||
|
||||
if (DateTime.now().isAfter(mEventStartDateTime.millis)) {
|
||||
if (mEvent.repeatInterval == 0 && mEvent.getReminders().any { it.type == REMINDER_NOTIFICATION }) {
|
||||
notifyEvent(mEvent)
|
||||
}
|
||||
}
|
||||
|
||||
hideKeyboard()
|
||||
finish()
|
||||
}
|
||||
} else {
|
||||
|
@ -1206,6 +1206,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
search_placeholder.beVisibleIf(events.isEmpty())
|
||||
val listItems = getEventListItems(events)
|
||||
val eventsAdapter = EventListAdapter(this, listItems, true, this, search_results_list) {
|
||||
hideKeyboard()
|
||||
if (it is ListEvent) {
|
||||
Intent(applicationContext, getActivityToOpen(it.isTask)).apply {
|
||||
putExtra(EVENT_ID, it.id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user