[settings]: Fix: siri shortcut missing from settings

This commit is contained in:
Magesh K
2024-12-12 19:12:09 +05:30
parent 3c99fe22d3
commit d5a9050464
2 changed files with 31 additions and 29 deletions

View File

@@ -40,8 +40,10 @@ extension SettingsViewController
static var allCases: [AppRefreshRow] {
var c: [AppRefreshRow] = [.backgroundRefresh, .noIdleTimeout]
guard #available(iOS 14, *) else { return c }
if !ProcessInfo().sparseRestorePatched { c.append(.disableAppLimit) }
c.append(.addToSiri)
// conditional entries go at the last to preserve ordering
if !ProcessInfo().sparseRestorePatched { c.append(.disableAppLimit) }
return c
}
}