Fix the issue 0 New Updates Available

This commit is contained in:
Iamlooker 2022-06-30 12:04:26 +05:30
parent 95f68f9b70
commit eb47f3882f
No known key found for this signature in database
GPG Key ID: 16F53B972BAECA48

View File

@ -35,7 +35,6 @@ import io.reactivex.rxjava3.disposables.Disposable
import io.reactivex.rxjava3.schedulers.Schedulers
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow
@ -397,7 +396,8 @@ class SyncService : ConnectionService<SyncService.Binder>() {
if (Preferences[Preferences.Key.InstallAfterSync])
batchUpdate(result)
if (hasUpdates && Preferences[Preferences.Key.UpdateNotify] &&
updateNotificationBlockerFragment?.get()?.isAdded != true
updateNotificationBlockerFragment?.get()?.isAdded != true &&
result.isNotEmpty()
)
displayUpdatesNotification(result)
}