Skip to content

Commit

Permalink
Merge pull request Expensify#51903 from s77rt/ScheduleDispatchFrameCa…
Browse files Browse the repository at this point in the history
…llback-resume

Android onHostResume resume frame callback
  • Loading branch information
danieldoglas authored Nov 4, 2024
2 parents 65938b7 + 05cef9e commit e1e970d
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java
index ce8520e..e2b22b0 100644
--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java
+++ b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.java
@@ -122,6 +122,7 @@ public class FabricEventDispatcher implements EventDispatcher, LifecycleEventLis
@Override
public void onHostResume() {
maybePostFrameCallbackFromNonUI();
+ mCurrentFrameCallback.resume();
}

@Override
@@ -190,6 +191,10 @@ public class FabricEventDispatcher implements EventDispatcher, LifecycleEventLis
mShouldStop = true;
}

+ public void resume() {
+ mShouldStop = false;
+ }
+
public void maybePost() {
if (!mIsPosted) {
mIsPosted = true;

0 comments on commit e1e970d

Please sign in to comment.