fix(update): latestApkUrl как @Volatile
This commit is contained in:
1 parent
16311616ab
commit
0aecc07849
1 file changed
+1
-1
@@ -25,7 +25,7 @@ class AppUpdater(private val context: Context) {
|
||||
private val _state = MutableStateFlow<UpdateState>(UpdateState.Idle)
|
||||
val state: StateFlow<UpdateState> = _state.asStateFlow()
|
||||
|
||||
private var latestApkUrl: String? = null
|
||||
@Volatile private var latestApkUrl: String? = null
|
||||
|
||||
private val apkFile: File
|
||||
get() = File(context.cacheDir, "update.apk")
|
||||
|
||||
Reference in new issue
Block a user