File tree 2 files changed +3
-5
lines changed
androidTest/java/com/optimizely/ab/android/odp
main/java/com/optimizely/ab/android/odp
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import android.content.Context
18
18
import android.content.SharedPreferences
19
19
import androidx.test.ext.junit.runners.AndroidJUnit4
20
20
import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
21
- import com.optimizely.ab.android.shared.OptlyStorage
22
21
import org.junit.After
23
22
import org.junit.Assert.assertEquals
24
23
import org.junit.Assert.assertFalse
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ class VuidManager private constructor() {
28
28
private var INSTANCE : VuidManager ? = null
29
29
30
30
@Synchronized
31
- fun getInstance (): VuidManager = INSTANCE ? :
32
- VuidManager ().also { INSTANCE = it }
31
+ fun getInstance (): VuidManager = INSTANCE ? : VuidManager ().also { INSTANCE = it }
33
32
34
33
fun isVuid (visitorId : String ): Boolean {
35
34
return visitorId.startsWith(" vuid_" , ignoreCase = true )
@@ -44,7 +43,7 @@ class VuidManager private constructor() {
44
43
@Synchronized
45
44
fun configure (enableVuid : Boolean , context : Context ) {
46
45
if (! enableVuid) {
47
- removeVuid(context);
46
+ removeVuid(context)
48
47
} else {
49
48
this .vuid = load(context)
50
49
}
@@ -80,6 +79,6 @@ class VuidManager private constructor() {
80
79
81
80
fun removeVuid (context : Context ) {
82
81
val storage = OptlyStorage (context)
83
- storage.remove(keyForVuid);
82
+ storage.remove(keyForVuid)
84
83
}
85
84
}
You can’t perform that action at this time.
0 commit comments