Backport: Add missing synchronized keyword

This commit is contained in:
ByteHamster 2021-04-03 15:47:15 +02:00
parent d717ae1e2e
commit 3acdc83c66

View File

@ -330,7 +330,7 @@ public class PodDBAdapter {
PodDBAdapter.context = context.getApplicationContext(); PodDBAdapter.context = context.getApplicationContext();
} }
public static PodDBAdapter getInstance() { public static synchronized PodDBAdapter getInstance() {
if (instance == null) { if (instance == null) {
instance = new PodDBAdapter(); instance = new PodDBAdapter();
} }