Reset snackbar action

This commit is contained in:
M66B 2022-04-15 15:30:13 +02:00
parent c4d9d8a083
commit 345cc01dcd
1 changed files with 4 additions and 1 deletions

View File

@ -1047,7 +1047,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
@Override @Override
protected void onDestroy() { protected void onDestroy() {
lastSnackbar = null; if (lastSnackbar != null) {
lastSnackbar.setAction(null, null);
lastSnackbar = null;
}
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this); LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(this);
lbm.unregisterReceiver(creceiver); lbm.unregisterReceiver(creceiver);
super.onDestroy(); super.onDestroy();