mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix ART surface sleep issue
Summary: Fixes https://github.com/facebook/react-native/issues/17565. Reviewed By: achen1 Differential Revision: D8194925 fbshipit-source-id: 5448d49d959078eaded697f791e1b382471fabdb
This commit is contained in:
committed by
Facebook Github Bot
parent
5863b564f8
commit
5fc42f308a
@@ -7,6 +7,7 @@
|
||||
|
||||
package com.facebook.react.flat;
|
||||
|
||||
import android.view.SurfaceHolder;
|
||||
import com.facebook.react.uimanager.BaseViewManager;
|
||||
import com.facebook.react.uimanager.ThemedReactContext;
|
||||
import com.facebook.react.views.art.ARTSurfaceView;
|
||||
@@ -14,6 +15,7 @@ import com.facebook.yoga.YogaMeasureFunction;
|
||||
import com.facebook.yoga.YogaMeasureMode;
|
||||
import com.facebook.yoga.YogaNode;
|
||||
|
||||
|
||||
public class FlatARTSurfaceViewManager extends
|
||||
BaseViewManager<ARTSurfaceView, FlatARTSurfaceViewShadowNode> {
|
||||
|
||||
@@ -55,6 +57,6 @@ public class FlatARTSurfaceViewManager extends
|
||||
|
||||
@Override
|
||||
public void updateExtraData(ARTSurfaceView root, Object extraData) {
|
||||
root.setSurfaceTextureListener((FlatARTSurfaceViewShadowNode) extraData);
|
||||
root.getHolder().addCallback((FlatARTSurfaceViewShadowNode) extraData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user