Merge pull request #5081 from ByteHamster/backport-sync

Backport: Add missing synchronized keyword
This commit is contained in:
ByteHamster 2021-04-03 16:15:43 +02:00 committed by GitHub
commit 4e58a60fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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