mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-04 15:35:19 +00:00
27 lines
735 B
Java
27 lines
735 B
Java
|
package org.thoughtcrime.securesms.database.loaders;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.database.Cursor;
|
||
|
import android.support.v4.content.AsyncTaskLoader;
|
||
|
import android.support.v4.content.CursorLoader;
|
||
|
|
||
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
||
|
import org.thoughtcrime.securesms.database.DatabaseFactory;
|
||
|
import org.thoughtcrime.securesms.database.IdentityDatabase;
|
||
|
|
||
|
public class IdentityLoader extends CursorLoader {
|
||
|
|
||
|
private final Context context;
|
||
|
|
||
|
public IdentityLoader(Context context) {
|
||
|
super(context);
|
||
|
this.context = context.getApplicationContext();
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Cursor loadInBackground() {
|
||
|
return DatabaseFactory.getIdentityDatabase(context).getIdentities();
|
||
|
}
|
||
|
|
||
|
}
|