Skip to content

Commit 2bd3be4

Browse files
committed
feat: remove ChoreographerCompat
This has been removed in RN 0.80 and is compatible with Android 4.1+
1 parent b188445 commit 2bd3be4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import android.os.AsyncTask;
66
import android.os.Handler;
77
import android.os.Looper;
8+
import android.view.Choreographer;
89
import android.view.View;
910

1011
import androidx.annotation.OptIn;
@@ -24,7 +25,6 @@
2425
import com.facebook.react.bridge.WritableMap;
2526
import com.facebook.react.common.annotations.UnstableReactNativeAPI;
2627
import com.facebook.react.devsupport.interfaces.DevSupportManager;
27-
import com.facebook.react.modules.core.ChoreographerCompat;
2828
import com.facebook.react.modules.core.DeviceEventManagerModule;
2929
import com.facebook.react.modules.core.ReactChoreographer;
3030
import com.facebook.react.modules.debug.interfaces.DeveloperSettings;
@@ -462,7 +462,7 @@ public void call(DownloadProgress downloadProgress) {
462462
getReactApplicationContext().runOnUiQueueThread(new Runnable() {
463463
@Override
464464
public void run() {
465-
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
465+
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new Choreographer.FrameCallback() {
466466
@Override
467467
public void doFrame(long frameTimeNanos) {
468468
if (!latestDownloadProgress.isCompleted()) {

0 commit comments

Comments
 (0)