mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
- Wrap the result processing logic in `onAccept` within a try-finally block to ensure `onLoading(false)` is always called - Move history database insertion and permission acceptance into nested coroutines to avoid blocking the main flow - Refactor application entity initialization to reduce unnecessary package manager calls - Optimize GZIP compression implementation using `use` blocks for better resource management - Simplify access to the Main activity and clipboard operations using `withContext(Dispatchers.Main)` - Ensure `finishAndRemoveTask()` is called more reliably after processing intents