Prevent crash in megaphones after backup restore.
This commit is contained in:
parent
28e2f22550
commit
7d949ee8fd
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ public class MegaphoneRepository {
|
||||||
public void getNextMegaphone(@NonNull Callback<Megaphone> callback) {
|
public void getNextMegaphone(@NonNull Callback<Megaphone> callback) {
|
||||||
executor.execute(() -> {
|
executor.execute(() -> {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
|
init();
|
||||||
callback.onResult(Megaphones.getNextMegaphone(context, databaseCache));
|
callback.onResult(Megaphones.getNextMegaphone(context, databaseCache));
|
||||||
} else {
|
} else {
|
||||||
callback.onResult(null);
|
callback.onResult(null);
|
||||||
|
|
Loading…
Add table
Reference in a new issue