Fix hidden menu

This commit is contained in:
stom79 2019-02-09 08:30:19 +01:00
parent b9f03bc9d3
commit dc99f1a1b9
1 changed files with 5 additions and 3 deletions

View File

@ -1288,13 +1288,15 @@ public abstract class BaseMainActivity extends BaseActivity
MenuItem action_about_instance = popup.getMenu().findItem(R.id.action_about_instance);
if( action_about_instance != null)
action_about_instance.setVisible(false);
MenuItem action_size = popup.getMenu().findItem(R.id.action_size);
if( action_size != null)
action_size.setVisible(false);
MenuItem action_export = popup.getMenu().findItem(R.id.action_export);
if( action_export != null)
action_export.setVisible(false);
}
if( social == UpdateAccountInfoAsyncTask.SOCIAL.PEERTUBE) {
MenuItem action_size = popup.getMenu().findItem(R.id.action_size);
if (action_size != null)
action_size.setVisible(false);
}
popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
public boolean onMenuItemClick(MenuItem item) {