Merge pull request #5081 from ByteHamster/backport-sync
Backport: Add missing synchronized keyword
This commit is contained in:
commit
4e58a60fa6
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue