mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-27 12:19:04 +00:00
ui wip
This commit is contained in:
@@ -41,11 +41,16 @@ public class Directory {
|
||||
SUPPORTS_SMS + " INTEGER, " +
|
||||
TIMESTAMP + " INTEGER);";
|
||||
|
||||
private static Directory instance;
|
||||
private static final Object instanceLock = new Object();
|
||||
private static volatile Directory instance;
|
||||
|
||||
public synchronized static Directory getInstance(Context context) {
|
||||
public static Directory getInstance(Context context) {
|
||||
if (instance == null) {
|
||||
instance = new Directory(context);
|
||||
synchronized (instanceLock) {
|
||||
if (instance == null) {
|
||||
instance = new Directory(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return instance;
|
||||
|
||||
Reference in New Issue
Block a user