From 345cc01dcdf9810f7655b5b9cc55ade3f93504a5 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 15 Apr 2022 15:30:13 +0200 Subject: [PATCH] Reset snackbar action --- app/src/main/java/eu/faircode/email/ActivityView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index c9f5f5805a..15b34b07e6 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -1047,7 +1047,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB @Override protected void onDestroy() { - lastSnackbar = null; + if (lastSnackbar != null) { + lastSnackbar.setAction(null, null); + lastSnackbar = null; + } LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this); lbm.unregisterReceiver(creceiver); super.onDestroy();