TF-1527 Fix for missing Add icon

This commit is contained in:
Zbigniew Cisiński 2024-03-21 21:39:20 +01:00
parent 7ac01b6cfe
commit a5a6034ea6
3 changed files with 9 additions and 6 deletions

View File

@ -72,6 +72,7 @@ extension LocalNotificationStateInteractor: LocalNotificationStateInteracting {
if runCount >= 2 && cycle == -2 {
startNotification(-1)
markLocalNotificationsAsHandled()
return
}
@ -107,7 +108,8 @@ extension LocalNotificationStateInteractor: LocalNotificationStateInteracting {
setInactiveNotification(next)
}
markLocalNotificationsAsHandled()
default: break
default:
markLocalNotificationsAsHandled()
}
}
}

View File

@ -72,6 +72,7 @@ extension NewsInteractor: NewsInteracting {
network.fetchNews { [weak self] result in
switch result {
case .success(let newList):
Log("NewsInteractor: News list fetched, items count: \(newList.count)", module: .moduleInteractor)
self?.mainRepository.saveLastNewsFetch(Date())
self?.handleFetchedList(newList)
case .failure:

View File

@ -86,9 +86,7 @@ extension TokensPresenter {
Log("TokensPresenter - viewWillAppear")
interactor.sync()
appActiveActions()
interactor.fetchNews { [weak self] in
self?.updateNewsIcon()
}
updateNewsIcon()
}
func handleAppDidBecomeActive() {
@ -453,6 +451,7 @@ extension TokensPresenter {
private extension TokensPresenter {
func appActiveActions() {
updateEditStateButton()
updateNewsIcon()
changeDragAndDropIfNecessary(enable: false)
changeRequriesTokenRefresh = true
reloadData()
@ -532,7 +531,7 @@ private extension TokensPresenter {
}()
if interactor.hasServices {
updateNewsIcon()
updateAddServiceIcon()
view?.showList()
if Set<CategoryData>(currentServices) != Set<CategoryData>(newServices) || changeRequriesTokenRefresh {
@ -553,7 +552,7 @@ private extension TokensPresenter {
if !isSearching && currentState == .edit {
setCurrentState(.normal)
}
updateNewsIcon()
updateAddServiceIcon()
interactor.stopCounters()
updateEditStateButton()
@ -596,6 +595,7 @@ private extension TokensPresenter {
}
func updateNewsIcon() {
updateAddServiceIcon()
interactor.fetchNews { [weak self] in
self?.updateAddServiceIcon()
}