@Override public boolean onCreateOptionsMenu(Menu menu) { Log.d(TAG, "Create menu options"); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.loader_menu, menu); menu.findItem(R.id.loader_menu_refresh_map_list).setVisible(mLoader < 0); return true; }
@Override public boolean onPrepareOptionsMenu(Menu menu) { Log.d(TAG, "Prepare menu options"); menu.findItem(R.id.loader_menu_refresh_map_list).setVisible(mLoader < 0); return true; }