mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Merge pull request #1454 from KryptKode/fix/update-event-filter
update event types filter when events are imported
This commit is contained in:
@ -515,6 +515,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
if (result != ImportResult.IMPORT_FAIL) {
|
if (result != ImportResult.IMPORT_FAIL) {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
updateViewPager()
|
updateViewPager()
|
||||||
|
setupQuickFilter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -536,6 +537,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
it > 0 -> {
|
it > 0 -> {
|
||||||
toast(R.string.birthdays_added)
|
toast(R.string.birthdays_added)
|
||||||
updateViewPager()
|
updateViewPager()
|
||||||
|
setupQuickFilter()
|
||||||
}
|
}
|
||||||
it == -1 -> toast(R.string.no_new_birthdays)
|
it == -1 -> toast(R.string.no_new_birthdays)
|
||||||
else -> toast(R.string.no_birthdays)
|
else -> toast(R.string.no_birthdays)
|
||||||
@ -565,6 +567,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
it > 0 -> {
|
it > 0 -> {
|
||||||
toast(R.string.anniversaries_added)
|
toast(R.string.anniversaries_added)
|
||||||
updateViewPager()
|
updateViewPager()
|
||||||
|
setupQuickFilter()
|
||||||
}
|
}
|
||||||
it == -1 -> toast(R.string.no_new_anniversaries)
|
it == -1 -> toast(R.string.no_new_anniversaries)
|
||||||
else -> toast(R.string.no_anniversaries)
|
else -> toast(R.string.no_anniversaries)
|
||||||
@ -899,6 +902,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
|||||||
if (it) {
|
if (it) {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
updateViewPager()
|
updateViewPager()
|
||||||
|
setupQuickFilter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user