Small behavior fix

This commit is contained in:
M66B
2021-12-17 18:47:36 +01:00
parent f714cdc218
commit 0ee837d3ba
2 changed files with 4 additions and 2 deletions

View File

@@ -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);
}
}