fix(update): latestApkUrl как @Volatile

This commit is contained in:
samosvalishe committed 2026-06-14 11:57:27 +03:00
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")