android: add hold-to-record voice flow with lock cancel and audio focus
This commit is contained in:
@@ -392,3 +392,15 @@
|
||||
- Reworked Settings/Profile screens from placeholders to editable account management screens.
|
||||
- Added avatar upload with center square crop (`1:1`) before upload.
|
||||
- Upgraded message attachment rendering with in-bubble multi-image gallery and unified attachment context actions (open/copy/close).
|
||||
|
||||
### Step 66 - Voice recording controls + global audio focus
|
||||
- Added microphone permission (`RECORD_AUDIO`) and in-chat voice recording flow based on press-and-hold gesture.
|
||||
- Implemented Telegram-like gesture controls for voice button:
|
||||
- hold to record,
|
||||
- slide up to lock recording,
|
||||
- slide left to cancel recording.
|
||||
- Added minimum voice length validation (`>= 1s`) before sending.
|
||||
- Integrated voice message sending via existing media upload path (`audio/mp4` attachment).
|
||||
- Added process-wide audio focus coordinator to enforce single active audio source:
|
||||
- attachment player pauses when another source starts,
|
||||
- recording requests focus and stops competing playback.
|
||||
|
||||
Reference in New Issue
Block a user