Fixes #2707 - Prevent the app from locking while recording a voice message

This commit is contained in:
Stefan Ceriu
2024-04-19 17:25:43 +03:00
committed by Stefan Ceriu
parent effe3b6a9b
commit 1e810f91ff
5 changed files with 81 additions and 29 deletions
@@ -19,6 +19,10 @@ import UIKit
// sourcery: AutoMockable
protocol AppMediatorProtocol {
var appState: UIApplication.State { get }
var backgroundTimeRemaining: TimeInterval { get }
func beginBackgroundTask(withName taskName: String?, expirationHandler handler: (() -> Void)?) -> UIBackgroundTaskIdentifier
func endBackgroundTask(_ identifier: UIBackgroundTaskIdentifier)
@@ -26,10 +30,8 @@ protocol AppMediatorProtocol {
func open(_ url: URL)
func openAppSettings()
var backgroundTimeRemaining: TimeInterval { get }
var appState: UIApplication.State { get }
func setIdleTimerDisabled(_ disabled: Bool)
}
extension UIApplication.State: CustomStringConvertible {