aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/persistance
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-27 18:07:04 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-27 18:07:04 +0200
commit2e080401b1645bd7f7d4804d37d953050d07a9d1 (patch)
tree9542fb472205bdf62494c0adcdfb0bbbb6499875 /src/eu/siacs/conversations/persistance
parent29f089c95468357e92c104dd693277f583c77d79 (diff)
migrated some ArrayLists to CopyOnWriteArrayLists
Diffstat (limited to 'src/eu/siacs/conversations/persistance')
-rw-r--r--src/eu/siacs/conversations/persistance/DatabaseBackend.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eu/siacs/conversations/persistance/DatabaseBackend.java b/src/eu/siacs/conversations/persistance/DatabaseBackend.java
index 7643076a..d840721b 100644
--- a/src/eu/siacs/conversations/persistance/DatabaseBackend.java
+++ b/src/eu/siacs/conversations/persistance/DatabaseBackend.java
@@ -129,12 +129,12 @@ public class DatabaseBackend extends SQLiteOpenHelper {
return list;
}
- public List<Message> getMessages(Conversation conversations, int limit) {
+ public CopyOnWriteArrayList<Message> getMessages(Conversation conversations, int limit) {
return getMessages(conversations, limit,-1);
}
- public List<Message> getMessages(Conversation conversation, int limit, long timestamp) {
- List<Message> list = new CopyOnWriteArrayList<Message>();
+ public CopyOnWriteArrayList<Message> getMessages(Conversation conversation, int limit, long timestamp) {
+ CopyOnWriteArrayList<Message> list = new CopyOnWriteArrayList<Message>();
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor;
if (timestamp==-1) {