Skip to content

Commit 2f2d9f2

Browse files
committed
Moved SceneView to TextureView
1 parent d4c92c7 commit 2f2d9f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sceneview/src/main/java/io/github/sceneview/SceneView.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ open class SceneView @JvmOverloads constructor(
6565
attrs: AttributeSet? = null,
6666
defStyleAttr: Int = 0,
6767
defStyleRes: Int = 0,
68-
sharedActivity: ComponentActivity? = null,
69-
sharedLifecycle: Lifecycle? = null,
7068
/**
7169
* Provide your own instance if you want to share Filament resources between multiple views.
7270
*/
@@ -167,8 +165,10 @@ open class SceneView @JvmOverloads constructor(
167165
/**
168166
* The listener invoked for all the gesture detector callbacks.
169167
*/
170-
sharedOnGestureListener: GestureDetector.OnGestureListener? = null
171-
) : SurfaceView(context, attrs, defStyleAttr, defStyleRes) {
168+
sharedOnGestureListener: GestureDetector.OnGestureListener? = null,
169+
sharedActivity: ComponentActivity? = null,
170+
sharedLifecycle: Lifecycle? = null,
171+
) : TextureView(context, attrs, defStyleAttr, defStyleRes) {
172172

173173
val engine = sharedEngine ?: createEglContext().let {
174174
defaultEglContext = it

0 commit comments

Comments
 (0)