mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 11:22:12 +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())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe { result, throwable ->
|
.subscribe { result, throwable ->
|
||||||
throwable?.printStackTrace()
|
throwable?.printStackTrace()
|
||||||
currentTask = null
|
|
||||||
if (result.isNotEmpty()) {
|
if (result.isNotEmpty()) {
|
||||||
if (Preferences[Preferences.Key.InstallAfterSync])
|
if (Preferences[Preferences.Key.InstallAfterSync])
|
||||||
batchUpdate(result)
|
batchUpdate(result)
|
||||||
@ -399,8 +398,12 @@ class SyncService : ConnectionService<SyncService.Binder>() {
|
|||||||
updateNotificationBlockerFragment?.get()?.isAdded != true &&
|
updateNotificationBlockerFragment?.get()?.isAdded != true &&
|
||||||
result.isNotEmpty()
|
result.isNotEmpty()
|
||||||
)
|
)
|
||||||
displayUpdatesNotification(result)
|
displayUpdatesNotification(
|
||||||
|
result,
|
||||||
|
currentTask?.task?.manual == true
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
currentTask = null
|
||||||
handleNextTask(false)
|
handleNextTask(false)
|
||||||
}
|
}
|
||||||
if (hasUpdates) {
|
if (hasUpdates) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user