Added answer messages

pull/185/head
M66B 4 years ago
parent bf96e7e27f
commit 1c42335526

@ -1577,6 +1577,11 @@ public class FragmentCompose extends FragmentBase {
@Override
protected void onExecuted(Bundle args, final List<EntityAnswer> answers) {
if (answers.size() == 0) {
ToastEx.makeText(getContext(), R.string.title_no_answers, Toast.LENGTH_LONG).show();
return;
}
View vwAnchorMenu = view.findViewById(R.id.vwAnchorMenu);
PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(getContext(), getViewLifecycleOwner(), vwAnchorMenu);
Menu main = popupMenu.getMenu();
@ -1639,6 +1644,8 @@ public class FragmentCompose extends FragmentBase {
return true;
}
Log.e("Answer=" + id + " count=" + answers.size() + " not found");
return false;
}
});

Loading…
Cancel
Save