aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/ConversationList.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-01-24 23:58:51 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-01-24 23:58:51 +0100
commitdf9dcb1060d44a719e2892446b62cde884a880cf (patch)
treeed3bf01c8f249162018b33460f81b52ac2f618fb /src/de/gultsch/chat/ConversationList.java
parentb273390e26e1d28f6df01fb421d8554cb7588a58 (diff)
basic persistance layer. refactor some parts of the conversation activity
Diffstat (limited to 'src/de/gultsch/chat/ConversationList.java')
-rw-r--r--src/de/gultsch/chat/ConversationList.java17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/de/gultsch/chat/ConversationList.java b/src/de/gultsch/chat/ConversationList.java
index 205d3549..ac5f9230 100644
--- a/src/de/gultsch/chat/ConversationList.java
+++ b/src/de/gultsch/chat/ConversationList.java
@@ -4,6 +4,8 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
+import de.gultsch.chat.entities.Conversation;
+
public class ConversationList extends ArrayList<Conversation> {
private static final long serialVersionUID = 3661496589984289968L;
@@ -24,21 +26,6 @@ public class ConversationList extends ArrayList<Conversation> {
this.selectedConversationPosition = selectedConversation;
}
- public void sort() {
- Conversation selectedConversation = this.get(selectedConversationPosition);
- //sort this
- Collections.sort(this, new Comparator<Conversation>() {
-
- @Override
- public int compare(Conversation lhs, Conversation rhs) {
- // TODO Auto-generated method stub
- return 0;
- }
- });
-
- this.selectedConversationPosition = this.indexOf(selectedConversation);
- }
-
public synchronized int addAndReturnPosition(Conversation conversation) {
this.add(conversation);
return size() - 1;