Fix item menu that should not be displayed

This commit is contained in:
tom79 2019-08-17 16:20:24 +02:00
parent a6f34d1898
commit 08d012e0e4
2 changed files with 4 additions and 1 deletions

View File

@ -951,6 +951,9 @@ public abstract class BaseMainActivity extends BaseActivity
MenuItem action_export = popup.getMenu().findItem(R.id.action_export);
if( action_export != null)
action_export.setVisible(false);
MenuItem action_send_invitation = popup.getMenu().findItem(R.id.action_send_invitation);
if( action_send_invitation != null)
action_send_invitation.setVisible(false);
}
if( social == UpdateAccountInfoAsyncTask.SOCIAL.PEERTUBE) {
MenuItem action_size = popup.getMenu().findItem(R.id.action_size);

View File

@ -1148,7 +1148,7 @@
<string name="set_auto_backup_indication">This option is per account. It will launch a service that will automatically store your statuses locally in the database. That allows to get statistics and charts</string>
<string name="report_account">Report account</string>
<string name="send_invitation">Send an invitation</string>
<string name="registration_closed">Your instance does not allow to create an account!</string>
<string name="registration_closed">Your instance does not allow to register a new account!</string>
<plurals name="number_of_vote">
<item quantity="one">%d vote</item>
<item quantity="other">%d votes</item>