mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 12:32:17 +00:00
Move to a Fragment world.
1) Start breaking the UI out into Fragments. 2) Switch to Cursor loaders from managed cursors. 3) Switch to inflated menu resources. 4) Break out some basic functionality into helper classes.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package org.thoughtcrime.securesms.database.loaders;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
import android.support.v4.content.CursorLoader;
|
||||
|
||||
import org.thoughtcrime.securesms.database.DatabaseFactory;
|
||||
|
||||
public class ConversationListLoader extends CursorLoader {
|
||||
|
||||
private final String filter;
|
||||
private final Context context;
|
||||
|
||||
public ConversationListLoader(Context context, String filter) {
|
||||
super(context);
|
||||
this.filter = filter;
|
||||
this.context = context.getApplicationContext();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Cursor loadInBackground() {
|
||||
return DatabaseFactory.getThreadDatabase(context).getConversationList();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user