Added error messages

pull/182/head
M66B 4 years ago
parent b36e97eb8b
commit 0dc8b838a0

@ -4651,11 +4651,15 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override @Override
protected void onExecuted(Bundle args, final ArrayList<MessageTarget> result) { protected void onExecuted(Bundle args, final ArrayList<MessageTarget> result) {
ActivityView activity = (ActivityView) getActivity(); ActivityView activity = (ActivityView) getActivity();
if (activity == null) if (activity == null) {
Log.e("Undo: activity missing");
return; return;
}
View content = activity.getContentView(); View content = activity.getContentView();
if (content == null) if (content == null) {
Log.e("Undo: view missing");
return; return;
}
// Show undo snackbar // Show undo snackbar
final Snackbar snackbar = Snackbar.make( final Snackbar snackbar = Snackbar.make(

Loading…
Cancel
Save