mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 03:12:15 +00:00
Update: Enforce notification on manual sync
This commit is contained in:
parent
717d653644
commit
569d6aaac4
@ -391,7 +391,6 @@ class SyncService : ConnectionService<SyncService.Binder>() {
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe { result, throwable ->
|
||||
throwable?.printStackTrace()
|
||||
currentTask = null
|
||||
if (result.isNotEmpty()) {
|
||||
if (Preferences[Preferences.Key.InstallAfterSync])
|
||||
batchUpdate(result)
|
||||
@ -399,8 +398,12 @@ class SyncService : ConnectionService<SyncService.Binder>() {
|
||||
updateNotificationBlockerFragment?.get()?.isAdded != true &&
|
||||
result.isNotEmpty()
|
||||
)
|
||||
displayUpdatesNotification(result)
|
||||
displayUpdatesNotification(
|
||||
result,
|
||||
currentTask?.task?.manual == true
|
||||
)
|
||||
}
|
||||
currentTask = null
|
||||
handleNextTask(false)
|
||||
}
|
||||
if (hasUpdates) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user