mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add @DoNotStrip annotation to JavaTimerManager.deleteTimer()
Summary: This method is being stripped in release builds because it's used directly from C++ and not referenced in Java. Adding `DoNotStrip` to prevent this. Changelog: [Internal] Reviewed By: PeteTheHeat, mdvacca Differential Revision: D19708826 fbshipit-source-id: a572f0295ab3b49e5884d0a6c723d65e4bbc9226
This commit is contained in:
committed by
Facebook Github Bot
parent
73427561f7
commit
c32ec1f2ab
@@ -345,6 +345,7 @@ public class JavaTimerManager {
|
||||
createTimer(callbackID, adjustedDuration, repeat);
|
||||
}
|
||||
|
||||
@DoNotStrip
|
||||
public void deleteTimer(int timerId) {
|
||||
synchronized (mTimerGuard) {
|
||||
Timer timer = mTimerIdsToTimers.get(timerId);
|
||||
@@ -356,6 +357,7 @@ public class JavaTimerManager {
|
||||
}
|
||||
}
|
||||
|
||||
@DoNotStrip
|
||||
public void setSendIdleEvents(final boolean sendIdleEvents) {
|
||||
synchronized (mIdleCallbackGuard) {
|
||||
mSendIdleEvents = sendIdleEvents;
|
||||
|
||||
Reference in New Issue
Block a user