forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Expensify#51903 from s77rt/ScheduleDispatchFrameCa…
…llback-resume Android onHostResume resume frame callback
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
patches/react-native+0.75.2+019+Android-onHostResume-resume-frame-callback.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |