From bed5b7202b2d62c34519fc426a5586eef44aa1f0 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Thu, 28 Nov 2024 10:12:50 -0500 Subject: [PATCH] Fix duplicate id error (cherry picked from commit 692fea953210d4348463b091ff82f2d8e87e1be9) --- .../conversations/ui/ConversationsOverviewFragment.java | 8 ++++---- src/main/res/layout/fragment_conversations_overview.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java index ed018dca7..cb706f35b 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java @@ -541,13 +541,13 @@ public class ConversationsOverviewFragment extends XmppFragment { } setupSwipe(); - binding.snackbar.setVisibility(View.GONE); + binding.overviewSnackbar.setVisibility(View.GONE); if (activity.xmppConnectionService == null) return; for (final var account : activity.xmppConnectionService.getAccounts()) { if (account.mamPrefs() != null && !"always".equals(account.mamPrefs().getAttribute("default"))) { - binding.snackbar.setVisibility(View.VISIBLE); - binding.snackbarMessage.setText("Your account " + account.getJid().asBareJid().toEscapedString() + " does not have archiving fully enabled. This may result in missed messages if you use multiple devices or apps."); - binding.snackbarAction.setOnClickListener((v) -> { + binding.overviewSnackbar.setVisibility(View.VISIBLE); + binding.overviewSnackbarMessage.setText("Your account " + account.getJid().asBareJid().toEscapedString() + " does not have archiving fully enabled. This may result in missed messages if you use multiple devices or apps."); + binding.overviewSnackbarAction.setOnClickListener((v) -> { final var prefs = account.mamPrefs(); prefs.setAttribute("default", "always"); activity.xmppConnectionService.pushMamPreferences(account, prefs); diff --git a/src/main/res/layout/fragment_conversations_overview.xml b/src/main/res/layout/fragment_conversations_overview.xml index bd1732665..26cd65afe 100644 --- a/src/main/res/layout/fragment_conversations_overview.xml +++ b/src/main/res/layout/fragment_conversations_overview.xml @@ -11,7 +11,7 @@ android:orientation="vertical">