mirror of
https://github.com/twofas/2fas-ios.git
synced 2024-11-22 02:10:19 +01:00
v5.3.0 Fix for large widget
This commit is contained in:
parent
d949170c0c
commit
1ba5e476a2
@ -114,11 +114,12 @@ struct AppIntentProvider: AppIntentTimelineProvider {
|
||||
let rest = seconds % smallestIncrement
|
||||
return smallestIncrement - rest
|
||||
}()
|
||||
let slotsCount = context.family.servicesCount
|
||||
let divider: Int = {
|
||||
if services.count > 3 {
|
||||
if slotsCount > 3 {
|
||||
return 27
|
||||
}
|
||||
let value = services.count / 2
|
||||
let value = slotsCount / 2
|
||||
if value == 0 {
|
||||
return 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user