Skip to content

Commit be58ddb

Browse files
committed
fix(android): @volatile on paused flag for cross-thread visibility
1 parent 96fb8f0 commit be58ddb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/new/java/com/rive/RiveReactNativeView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class RiveReactNativeView(context: ThemedReactContext) : FrameLayout(context) {
7777
private var disposed = false
7878
private var lastFrameTimeNs = 0L
7979
private var frameCount = 0L
80-
private var paused = false
80+
@Volatile private var paused = false
8181

8282
private val textureView = TextureView(context).apply {
8383
layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)

0 commit comments

Comments
 (0)