Small behavior fix

pull/194/merge
M66B 3 years ago
parent f714cdc218
commit 0ee837d3ba

@ -234,7 +234,8 @@ public class FragmentAnswer extends FragmentBase {
}, null, context));
}
bottom_navigation.findViewById(R.id.action_delete).setVisibility(answer == null ? View.GONE : View.VISIBLE);
if (answer == null)
bottom_navigation.getMenu().removeItem(R.id.action_delete);
if (ActivityAnswer.canAnswer(context))
cbExternal.setVisibility(View.VISIBLE);

@ -1027,7 +1027,8 @@ public class FragmentRule extends FragmentBase {
Log.e(ex);
} finally {
grpReady.setVisibility(View.VISIBLE);
bottom_navigation.findViewById(R.id.action_delete).setVisibility(id < 0 ? View.GONE : View.VISIBLE);
if (id < 0)
bottom_navigation.getMenu().removeItem(R.id.action_delete);
bottom_navigation.setVisibility(View.VISIBLE);
}
}

Loading…
Cancel
Save