fix(instance.info): hide menu until loaded
This commit is contained in:
parent
889fbc688d
commit
b2d4a5aab0
|
@ -163,6 +163,7 @@ public class InstanceInfoFragment extends LoaderFragment {
|
|||
instance = result;
|
||||
bindViews();
|
||||
dataLoaded();
|
||||
invalidateOptionsMenu();
|
||||
if(refreshing) {
|
||||
refreshing = false;
|
||||
refreshLayout.setRefreshing(false);
|
||||
|
@ -327,9 +328,11 @@ public class InstanceInfoFragment extends LoaderFragment {
|
|||
|
||||
@Override
|
||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){
|
||||
if (instance != null) {
|
||||
inflater.inflate(R.menu.instance_info, menu);
|
||||
UiUtils.enableOptionsMenuIcons(getActivity(), menu);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item){
|
||||
|
|
Loading…
Reference in New Issue