fix(instance.info): hide menu until loaded

This commit is contained in:
FineFindus 2023-05-27 11:21:09 +02:00
parent 889fbc688d
commit b2d4a5aab0
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
1 changed files with 5 additions and 2 deletions

View File

@ -163,6 +163,7 @@ public class InstanceInfoFragment extends LoaderFragment {
instance = result;
bindViews();
dataLoaded();
invalidateOptionsMenu();
if(refreshing) {
refreshing = false;
refreshLayout.setRefreshing(false);
@ -327,8 +328,10 @@ public class InstanceInfoFragment extends LoaderFragment {
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){
inflater.inflate(R.menu.instance_info, menu);
UiUtils.enableOptionsMenuIcons(getActivity(), menu);
if (instance != null) {
inflater.inflate(R.menu.instance_info, menu);
UiUtils.enableOptionsMenuIcons(getActivity(), menu);
}
}
@Override