Prevent crash in megaphones after backup restore.
parent
28e2f22550
commit
7d949ee8fd
|
@ -63,6 +63,7 @@ public class MegaphoneRepository {
|
|||
public void getNextMegaphone(@NonNull Callback<Megaphone> callback) {
|
||||
executor.execute(() -> {
|
||||
if (enabled) {
|
||||
init();
|
||||
callback.onResult(Megaphones.getNextMegaphone(context, databaseCache));
|
||||
} else {
|
||||
callback.onResult(null);
|
||||
|
|
Loading…
Reference in New Issue