diff --git a/res/menu/new_conversation_activity.xml b/res/menu/new_conversation_activity.xml index 589fc4afb2..78dbfde0c2 100644 --- a/res/menu/new_conversation_activity.xml +++ b/res/menu/new_conversation_activity.xml @@ -1,7 +1,15 @@
\ No newline at end of file diff --git a/src/org/thoughtcrime/securesms/NewConversationActivity.java b/src/org/thoughtcrime/securesms/NewConversationActivity.java index 486eac112d..2cc15ebed5 100644 --- a/src/org/thoughtcrime/securesms/NewConversationActivity.java +++ b/src/org/thoughtcrime/securesms/NewConversationActivity.java @@ -70,8 +70,10 @@ public class NewConversationActivity extends ContactSelectionActivity { super.onOptionsItemSelected(item); switch (item.getItemId()) { - case android.R.id.home: super.onBackPressed(); return true; - case R.id.menu_refresh: handleManualRefresh(); return true; + case android.R.id.home: super.onBackPressed(); return true; + case R.id.menu_refresh: handleManualRefresh(); return true; + case R.id.menu_new_group: handleCreateGroup(); return true; + case R.id.menu_invite: handleInvite(); return true; } return false; @@ -82,6 +84,14 @@ public class NewConversationActivity extends ContactSelectionActivity { onRefresh(); } + private void handleCreateGroup() { + startActivity(new Intent(this, GroupCreateActivity.class)); + } + + private void handleInvite() { + startActivity(new Intent(this, InviteActivity.class)); + } + @Override protected boolean onPrepareOptionsPanel(View view, Menu menu) { MenuInflater inflater = this.getMenuInflater();