diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index dfca2e6..07b047d 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -63,6 +63,11 @@ along with Yaaic. If not, see .
android:label="@string/join_label"
android:theme="@android:style/Theme.Dialog">
+
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 890ec0c..dde54c0 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -32,4 +32,6 @@
Settings
Join channel
+
+ Users
diff --git a/src/org/yaaic/activity/ConversationActivity.java b/src/org/yaaic/activity/ConversationActivity.java
index be42bba..6922fdc 100644
--- a/src/org/yaaic/activity/ConversationActivity.java
+++ b/src/org/yaaic/activity/ConversationActivity.java
@@ -237,9 +237,9 @@ public class ConversationActivity extends Activity implements ServiceConnection,
finish();
break;
case R.id.close:
- Conversation conversation = deckAdapter.getItem(deck.getSelectedItemPosition());
- if (conversation.getType() != Conversation.TYPE_SERVER) {
- onRemoveConversation(conversation.getName());
+ Conversation conversationToClose = deckAdapter.getItem(deck.getSelectedItemPosition());
+ if (conversationToClose.getType() != Conversation.TYPE_SERVER) {
+ onRemoveConversation(conversationToClose.getName());
} else {
Toast.makeText(this, "You can not close the server info window", Toast.LENGTH_SHORT).show();
}
@@ -248,7 +248,12 @@ public class ConversationActivity extends Activity implements ServiceConnection,
startActivityForResult(new Intent(this, JoinActivity.class), 0);
break;
case R.id.users:
- // XXX: Todo, launch an user activity..
+ Conversation conversationForUserList = deckAdapter.getItem(deck.getSelectedItemPosition());
+ if (conversationForUserList.getType() == Conversation.TYPE_CHANNEL) {
+ startActivity(new Intent(this, UsersActivity.class));
+ } else {
+ Toast.makeText(this, "Only usable from within a channel", Toast.LENGTH_SHORT).show();
+ }
break;
}
diff --git a/src/org/yaaic/activity/UsersActivity.java b/src/org/yaaic/activity/UsersActivity.java
new file mode 100644
index 0000000..49853dd
--- /dev/null
+++ b/src/org/yaaic/activity/UsersActivity.java
@@ -0,0 +1,33 @@
+/*
+Yaaic - Yet Another Android IRC Client
+
+Copyright 2009-2010 Sebastian Kaspari
+
+This file is part of Yaaic.
+
+Yaaic is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Yaaic is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Yaaic. If not, see .
+*/
+package org.yaaic.activity;
+
+import android.app.Activity;
+
+/**
+ * User Activity - Shows a list of users in the current channel
+ *
+ * @author Sebastian Kaspari
+ */
+public class UsersActivity extends Activity
+{
+
+}