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(); } }