Skip to content

Commit 3af3bb7

Browse files
committed
Refactor CodePushNativeModule to replace ChoreographerCompat with Choreographer for improved compatibility
1 parent 8d82bcc commit 3af3bb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
import com.facebook.react.bridge.WritableMap;
2525
import com.facebook.react.common.annotations.UnstableReactNativeAPI;
2626
import com.facebook.react.devsupport.interfaces.DevSupportManager;
27-
import com.facebook.react.modules.core.ChoreographerCompat;
2827
import com.facebook.react.modules.core.DeviceEventManagerModule;
2928
import com.facebook.react.modules.core.ReactChoreographer;
3029
import com.facebook.react.modules.debug.interfaces.DeveloperSettings;
3130
import com.facebook.react.runtime.ReactHostDelegate;
3231
import com.facebook.react.runtime.ReactHostImpl;
32+
import android.view.Choreographer;
3333

3434
import org.json.JSONArray;
3535
import org.json.JSONException;
@@ -440,7 +440,7 @@ public void call(DownloadProgress downloadProgress) {
440440
getReactApplicationContext().runOnUiQueueThread(new Runnable() {
441441
@Override
442442
public void run() {
443-
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
443+
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new Choreographer.FrameCallback() {
444444
@Override
445445
public void doFrame(long frameTimeNanos) {
446446
if (!latestDownloadProgress.isCompleted()) {

0 commit comments

Comments
 (0)