mirror of
https://github.com/readest/readest.git
synced 2026-04-29 03:50:52 +00:00
To enable background playback in Android, go to Settings > Apps & Notifications > Readest > Battery > Battery Optimization, and disable battery optimization for Readest.
This commit is contained in:
parent
267e1656db
commit
4f0ef01a17
16 changed files with 207 additions and 83 deletions
|
|
@ -27,3 +27,11 @@ pub(crate) async fn copy_uri_to_path<R: Runtime>(
|
|||
) -> Result<CopyURIResponse> {
|
||||
app.native_bridge().copy_uri_to_path(payload)
|
||||
}
|
||||
|
||||
#[command]
|
||||
pub(crate) async fn use_background_audio<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
payload: UseBackgroundAudioRequest,
|
||||
) -> Result<()> {
|
||||
app.native_bridge().use_background_audio(payload)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue