Move the MegaphoneDatabase to a separate physical database.

This commit is contained in:
Greyson Parrelli
2021-01-05 14:31:15 -05:00
committed by Alan Evans
parent 9da49f9f8a
commit 86542febf9
7 changed files with 130 additions and 57 deletions

View File

@@ -39,7 +39,7 @@ public class MegaphoneRepository {
public MegaphoneRepository(@NonNull Application context) {
this.context = context;
this.executor = SignalExecutors.SERIAL;
this.database = DatabaseFactory.getMegaphoneDatabase(context);
this.database = MegaphoneDatabase.getInstance(context);
this.databaseCache = new HashMap<>();
executor.execute(this::init);