mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Move the KeyValueDatabase to a separate physical database.
This commit is contained in:
committed by
Alan Evans
parent
46d412a6c3
commit
c466dba8c4
@@ -1,5 +1,6 @@
|
||||
package org.thoughtcrime.securesms.keyvalue;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.AnyThread;
|
||||
@@ -38,9 +39,9 @@ public final class KeyValueStore implements KeyValueReader {
|
||||
|
||||
private KeyValueDataSet dataSet;
|
||||
|
||||
public KeyValueStore(@NonNull Context context) {
|
||||
public KeyValueStore(@NonNull Application application) {
|
||||
this.executor = SignalExecutors.newCachedSingleThreadExecutor("signal-KeyValueStore");
|
||||
this.database = DatabaseFactory.getKeyValueDatabase(context);
|
||||
this.database = KeyValueDatabase.getInstance(application);
|
||||
}
|
||||
|
||||
@AnyThread
|
||||
|
||||
Reference in New Issue
Block a user