renamed enter jid menu item id

This commit is contained in:
Daniel Gultsch 2017-03-05 11:40:48 +01:00
parent bb7780eae6
commit cae993a95f
3 changed files with 8 additions and 8 deletions

View file

@ -3,9 +3,9 @@ package eu.siacs.conversations.entities;
import eu.siacs.conversations.xmpp.jid.Jid;
public interface Blockable {
public boolean isBlocked();
public boolean isDomainBlocked();
public Jid getBlockedJid();
public Jid getJid();
public Account getAccount();
boolean isBlocked();
boolean isDomainBlocked();
Jid getBlockedJid();
Jid getJid();
Account getAccount();
}

View file

@ -68,14 +68,14 @@ public class BlocklistActivity extends AbstractSearchableListItemActivity implem
@Override
public boolean onCreateOptionsMenu(final Menu menu) {
super.onCreateOptionsMenu(menu);
menu.findItem(R.id.action_add_contact).setVisible(true);
menu.findItem(R.id.action_block_jid).setVisible(true);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_add_contact:
case R.id.action_block_jid:
showEnterJidDialog();
return true;
}

View file

@ -16,7 +16,7 @@
android:visible="false"/>
<item
android:id="@+id/action_add_contact"
android:id="@+id/action_block_jid"
android:icon="?attr/icon_add_person"
android:showAsAction="always"
android:title="@string/block_jabber_id"