I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8b1648c3 authored by str4d's avatar str4d
Browse files

Only allow adding to private book

parent cea42e9e
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,10 @@ public class AddressbookFragment extends ListFragment implements
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
inflater.inflate(R.menu.fragment_addressbook_actions, menu);
// Only allow adding to private book
if (!PRIVATE_BOOK.equals(mBook))
menu.findItem(R.id.action_add_to_addressbook).setVisible(false);
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment