Skip to content

Commit e528bf2

Browse files
feat: show Snackbar when dismissing upcoming event
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 59ef6a5 commit e528bf2

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,11 @@ class ChatActivity :
14141414
binding.upcomingEventContainer.upcomingEventDismiss.setOnClickListener {
14151415
binding.upcomingEventCard.visibility = View.GONE
14161416
chatViewModel.saveHiddenUpcomingEvent(hiddenEventKey)
1417+
Snackbar.make(
1418+
binding.root,
1419+
R.string.nc_upcoming_event_dismissed,
1420+
Snackbar.LENGTH_LONG
1421+
).show()
14171422
}
14181423
}
14191424
}

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ How to translate with transifex:
263263
<string name="nc_invalid_time">Invalid time</string>
264264
<string name="nc_today_meeting">Today at %1$s</string>
265265
<string name="nc_tomorrow_meeting">Tomorrow at %1$s</string>
266+
<string name="nc_upcoming_event_dismissed">Upcoming call can be viewed in conversation info</string>
266267
<string name="nc_delete_conversation_more">If you delete the conversation, it will also be deleted for all other participants.</string>
267268

268269
<string name="nc_new_conversation">New conversation</string>

0 commit comments

Comments
 (0)