mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-21 10:48:26 +00:00
Clean up my code.
This commit is contained in:
parent
3d574be931
commit
338149b7a4
@ -50,7 +50,6 @@ import org.whispersystems.libsignal.util.Pair;
|
|||||||
import org.whispersystems.libsignal.util.guava.Optional;
|
import org.whispersystems.libsignal.util.guava.Optional;
|
||||||
|
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -160,7 +159,6 @@ public class ThreadDatabase extends Database {
|
|||||||
notifyConversationListListeners();
|
notifyConversationListListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void updateSnippet(long threadId, String snippet, @Nullable Uri attachment, long date, long type, boolean unarchive) {
|
public void updateSnippet(long threadId, String snippet, @Nullable Uri attachment, long date, long type, boolean unarchive) {
|
||||||
ContentValues contentValues = new ContentValues(4);
|
ContentValues contentValues = new ContentValues(4);
|
||||||
|
|
||||||
|
@ -169,7 +169,8 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
|
|||||||
@Override
|
@Override
|
||||||
public void onConfigure(SQLiteDatabase db) {
|
public void onConfigure(SQLiteDatabase db) {
|
||||||
super.onConfigure(db);
|
super.onConfigure(db);
|
||||||
//Loki: Enable Write Ahead Logging Mode, increase the cache size
|
// Loki: Enable Write Ahead Logging Mode, increase the cache size
|
||||||
|
// This should be disabled if we ever run into serious race condition bugs
|
||||||
db.enableWriteAheadLogging();
|
db.enableWriteAheadLogging();
|
||||||
db.execSQL("PRAGMA cache_size = 10000");
|
db.execSQL("PRAGMA cache_size = 10000");
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,6 @@ import org.thoughtcrime.securesms.database.Address
|
|||||||
import org.thoughtcrime.securesms.database.Database
|
import org.thoughtcrime.securesms.database.Database
|
||||||
import org.thoughtcrime.securesms.database.DatabaseFactory
|
import org.thoughtcrime.securesms.database.DatabaseFactory
|
||||||
import org.thoughtcrime.securesms.database.helpers.SQLCipherOpenHelper
|
import org.thoughtcrime.securesms.database.helpers.SQLCipherOpenHelper
|
||||||
import org.thoughtcrime.securesms.logging.Log
|
|
||||||
import org.whispersystems.signalservice.loki.messaging.LokiMessageDatabaseProtocol
|
import org.whispersystems.signalservice.loki.messaging.LokiMessageDatabaseProtocol
|
||||||
import org.whispersystems.signalservice.loki.messaging.LokiMessageFriendRequestStatus
|
import org.whispersystems.signalservice.loki.messaging.LokiMessageFriendRequestStatus
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user