Updated the gesture-switch-toggle
This commit is contained in:
parent
c8d54ec6c7
commit
2ba649949f
3 changed files with 24 additions and 22 deletions
|
|
@ -197,8 +197,9 @@ class MainPlayerGestureListener(
|
|||
val isBrightnessGestureEnabled = PlayerHelper.isBrightnessGestureEnabled(player.context)
|
||||
val isVolumeGestureEnabled = PlayerHelper.isVolumeGestureEnabled(player.context)
|
||||
val brightnessSide = if (PreferenceManager.getDefaultSharedPreferences(player.context)
|
||||
.getBoolean(R.string.switch_gesture_sides_key.toString(), false)) DisplayPortion.RIGHT_HALF
|
||||
else DisplayPortion.LEFT_HALF
|
||||
.getBoolean(R.string.switch_gesture_sides_key.toString(), false)
|
||||
) DisplayPortion.RIGHT_HALF
|
||||
else DisplayPortion.LEFT_HALF
|
||||
if (isBrightnessGestureEnabled && isVolumeGestureEnabled) {
|
||||
if (getDisplayHalfPortion(initialEvent) === brightnessSide) {
|
||||
onScrollBrightness(distanceY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue