mirror of
https://github.com/twofas/2fas-ios.git
synced 2024-11-22 02:10:19 +01:00
TF-1527 Fix for missing Add icon
This commit is contained in:
parent
7ac01b6cfe
commit
a5a6034ea6
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user