mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-02 22:26:52 +02:00
feat(lyrics): keep the screen awake while viewing lyrics
This commit is contained in:
1 parent
a1cec6de51
commit
8aa8d598d8
14 files changed
+276
No files matched your search
@@ -262,6 +262,12 @@ import UniformTypeIdentifiers
|
||||
"getLibraryScanProgress", "cancelLibraryScan", "parseCueSheet", "extractCoverToFile",
|
||||
"rewriteSplitArtistTags", "writeM4AFreeformTags", "ensureAC4Config", "writeAC4Metadata", "reEnrichFile",
|
||||
"checkHiResAuthenticity"]
|
||||
if call.method == "setScreenAwake" {
|
||||
let args = call.arguments as? [String: Any]
|
||||
UIApplication.shared.isIdleTimerDisabled = args?["enabled"] as? Bool ?? false
|
||||
result(nil)
|
||||
return
|
||||
}
|
||||
if coreBackend.routesApplication && !osMethods.contains(call.method) {
|
||||
DispatchQueue.global(qos: .userInitiated).async {
|
||||
do {
|
||||
|
||||
Reference in new issue
Block a user