This commit is contained in:
Ali
2023-11-10 10:46:57 +04:00
parent 169fece59c
commit 857bf2190e
48 changed files with 682 additions and 207 deletions

View File

@@ -41,6 +41,7 @@ import DeviceProximity
import MediaEditor
import TelegramUIDeclareEncodables
import ContextMenuScreen
import MetalEngine
#if canImport(AppCenter)
import AppCenter
@@ -341,6 +342,8 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
self.window = window
self.nativeWindow = window
hostView.containerView.layer.addSublayer(MetalEngine.shared.rootLayer)
if !UIDevice.current.isBatteryMonitoringEnabled {
UIDevice.current.isBatteryMonitoringEnabled = true
}