correction to app badge multiply by 10 ui logic
This commit is contained in:
parent
9c1af87ddb
commit
c8dce268bc
|
@ -179,7 +179,7 @@ class SettingsViewNotificationsSettingsViewModel: SettingsViewModelProtocol {
|
|||
|
||||
// if unit is mmol and if show value in app badge is on and if showReadingInNotification is not on, then show also if to be multiplied by 10 yes or no
|
||||
// (if showReadingInNotification is on, then badge counter will be set via notification, in this case we can use NSNumber so we don't need to multiply by 10)
|
||||
if !UserDefaults.standard.bloodGlucoseUnitIsMgDl && UserDefaults.standard.showReadingInAppBadge && !UserDefaults.standard.showReadingInNotification {
|
||||
if !UserDefaults.standard.bloodGlucoseUnitIsMgDl && UserDefaults.standard.showReadingInAppBadge {
|
||||
return Setting.allCases.count
|
||||
} else {
|
||||
return Setting.allCases.count - 1
|
||||
|
|
Loading…
Reference in New Issue