aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-04 11:36:02 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-10 00:53:43 +0200
commitc1ee9e682a2f825e72260deb3f1c8579e21ed8de (patch)
tree8e6e7cf6858ca0097a0281621ede36dcd835d873 /src/eu/siacs/conversations/ui
parent502a1bdb9c3f6ddb8cdcf9be8c20862f4d55feaf (diff)
added action bar menu to start conversation
Diffstat (limited to 'src/eu/siacs/conversations/ui')
-rw-r--r--src/eu/siacs/conversations/ui/StartConversation.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/StartConversation.java b/src/eu/siacs/conversations/ui/StartConversation.java
index 9dccb411..16161e36 100644
--- a/src/eu/siacs/conversations/ui/StartConversation.java
+++ b/src/eu/siacs/conversations/ui/StartConversation.java
@@ -9,6 +9,12 @@ import android.app.ListFragment;
import android.os.Bundle;
import android.support.v13.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.PopupMenu;
+import android.widget.PopupMenu.OnMenuItemClickListener;
import eu.siacs.conversations.R;
public class StartConversation extends XmppActivity {
@@ -81,6 +87,21 @@ public class StartConversation extends XmppActivity {
});
}
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ getMenuInflater().inflate(R.menu.start_conversation, menu);
+ return true;
+ }
+
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ switch (item.getItemId()) {
+ default:
+ break;
+ }
+ return super.onOptionsItemSelected(item);
+ }
@Override
void onBackendConnected() {