Made the requested changes
This commit is contained in:
parent
1908a477d3
commit
24036fa27e
3 changed files with 19 additions and 22 deletions
|
|
@ -198,16 +198,16 @@ class MainPlayerGestureListener(
|
|||
|
||||
if (getDisplayHalfPortion(initialEvent) == DisplayPortion.RIGHT_HALF) {
|
||||
when (rightSide) {
|
||||
player.context.getString(R.string.right_volume_control_key) ->
|
||||
player.context.getString(R.string.volume_control_key) ->
|
||||
onScrollVolume(distanceY)
|
||||
player.context.getString(R.string.right_brightness_control_key) ->
|
||||
player.context.getString(R.string.brightness_control_key) ->
|
||||
onScrollBrightness(distanceY)
|
||||
}
|
||||
} else {
|
||||
when (leftSide) {
|
||||
player.context.getString(R.string.left_volume_control_key) ->
|
||||
player.context.getString(R.string.volume_control_key) ->
|
||||
onScrollVolume(distanceY)
|
||||
player.context.getString(R.string.left_brightness_control_key) ->
|
||||
player.context.getString(R.string.brightness_control_key) ->
|
||||
onScrollBrightness(distanceY)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue