[UI/Dialogs] Disable timetable fragment refreshing on event removing.

This commit is contained in:
Kuba Szczodrzyński 2019-12-18 23:55:15 +01:00
parent c7e5df5c91
commit b905283b61
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ class EventDetailsDialog(
removeEventDialog?.dismiss()
dialog.dismiss()
Toast.makeText(activity, R.string.removed, Toast.LENGTH_SHORT).show()
if (activity is MainActivity)
if (activity is MainActivity && activity.navTargetId == MainActivity.DRAWER_ITEM_AGENDA)
activity.reloadTarget()
}
}

View File

@ -681,7 +681,7 @@ class EventManualDialog(
removeEventDialog?.dismiss()
dialog.dismiss()
Toast.makeText(activity, R.string.removed, Toast.LENGTH_SHORT).show()
if (activity is MainActivity)
if (activity is MainActivity && activity.navTargetId == DRAWER_ITEM_AGENDA)
activity.reloadTarget()
}
}