Skip to content

Commit

Permalink
Merge pull request #320 from hannesa2/ParameterCleanup
Browse files Browse the repository at this point in the history
Parameter cleanup
  • Loading branch information
hannesa2 authored May 17, 2024
2 parents 3856690 + 7178c31 commit 98acf7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions library/src/main/java/com/panoramagl/PLManager.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.panoramagl

import android.content.Context
import android.content.res.Configuration
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
Expand Down Expand Up @@ -251,7 +250,7 @@ open class PLManager(private val context: Context) : PLIView, SensorEventListene
renderer?.internalListener = object : PLRendererListener {
override fun rendererFirstChanged(gl: GL10?, render: PLIRenderer?, width: Int, height: Int) {
mGLContext = gl
Handler(context.mainLooper).post { onGLContextCreated(mGLContext) }
Handler(context.mainLooper).post { onGLContextCreated() }
}

override fun rendererDestroyed(render: PLIRenderer?) {}
Expand Down Expand Up @@ -1427,7 +1426,7 @@ open class PLManager(private val context: Context) : PLIView, SensorEventListene
*
* @param gl current OpenGL context
*/
protected fun onGLContextCreated(gl: GL10?) = Unit
protected fun onGLContextCreated() = Unit

fun onResume() {
if (mIsRendererCreated && mPanorama != null) startAnimation()
Expand Down

0 comments on commit 98acf7b

Please sign in to comment.