From dc99f1a1b977fc5da150f745de2ebe7313edcfdc Mon Sep 17 00:00:00 2001 From: stom79 Date: Sat, 9 Feb 2019 08:30:19 +0100 Subject: [PATCH] Fix hidden menu --- .../gouv/etalab/mastodon/activities/BaseMainActivity.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/activities/BaseMainActivity.java b/app/src/main/java/fr/gouv/etalab/mastodon/activities/BaseMainActivity.java index f64450645..5b9929edc 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/activities/BaseMainActivity.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/activities/BaseMainActivity.java @@ -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) {