Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed May 17, 2024
1 parent cf71455 commit b66cbea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/src/main/java/com/panoramagl/PLManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ open class PLManager(private val context: Context) : PLIView, SensorEventListene
private var mIsAccelerometerEnabled = false
private var mIsAccelerometerLeftRightEnabled = false
private var mIsAccelerometerUpDownEnabled = false
private var mAccelerometerInterval = 0f
private var mAccelerometerInterval = PLConstants.kDefaultAccelerometerInterval
private var mAccelerometerSensitivity = 0f
private var mIsValidForSensorialRotation = false
protected var sensorialRotationType: PLSensorialRotationType? = null
Expand Down Expand Up @@ -175,7 +175,6 @@ open class PLManager(private val context: Context) : PLIView, SensorEventListene
mIsAccelerometerEnabled = false
mIsAccelerometerUpDownEnabled = true
mIsAccelerometerLeftRightEnabled = mIsAccelerometerUpDownEnabled
mAccelerometerInterval = PLConstants.kDefaultAccelerometerInterval
mAccelerometerSensitivity = PLConstants.kDefaultAccelerometerSensitivity
sensorialRotationType = PLSensorialRotationType.PLSensorialRotationTypeUnknow
mIsScrollingEnabled = false
Expand Down

0 comments on commit b66cbea

Please sign in to comment.