Restore iOS 13 features commit

This commit is contained in:
Ilya Laktyushin
2019-10-23 16:42:40 +04:00
parent 61f71dfcb2
commit 279b1304c7
30 changed files with 4209 additions and 3831 deletions

View File

@@ -366,7 +366,13 @@ private func themeSettingsControllerEntries(presentationData: PresentationData,
let title: String
switch autoNightSettings.trigger {
case .none:
case .system:
if #available(iOSApplicationExtension 13.0, iOS 13.0, *) {
title = strings.AutoNightTheme_System
} else {
title = strings.AutoNightTheme_Disabled
}
case .explicitNone:
title = strings.AutoNightTheme_Disabled
case .timeBased:
title = strings.AutoNightTheme_Scheduled