renamed enter jid menu item id
This commit is contained in:
parent
bb7780eae6
commit
cae993a95f
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue