ananas/app/phone
Daniel Jacob Chittoor 57c1e85b11
feat: add play/pause functionality to onDoubleTap (#450)
* feat: Add seek and play/pause functionality to onDoubleTap

This patch enhances the `onDoubleTap` method within the media player
component. It introduces a split-screen layout where the player view is
divided into three equal areas (in the ratio of 2:1:2).

1. Leftmost Area: When double-tapped, it seeks the media playback
backward by the defined seek increment
(`appPreferences.playerSeekBackIncrement`).

2. Middle Area: A double-tap in this area toggles the play/pause state
of the player. If the player is currently playing, it will be paused,
and if it's paused, it will be resumed.

3. Rightmost Area: When double-tapped, it seeks the media playback
forward by the specified seek increment
(`appPreferences.playerSeekForwardIncrement`).

* refactor: inline some variables and put x position inside when statement

---------

Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
2023-07-29 13:29:05 +02:00
..
src/main feat: add play/pause functionality to onDoubleTap (#450) 2023-07-29 13:29:05 +02:00
build.gradle.kts chore(deps): update dependency org.jlleitschuh.gradle.ktlint to v11.5.0 (#426) 2023-07-08 00:36:23 +02:00
lint.xml Modularize the codebase (#230) 2023-01-13 23:51:20 +01:00
proguard-rules.pro fix: add CollectionType to proguard-rules.pro 2023-06-20 19:42:16 +02:00