mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Fix: Showing updates notification even when disabled (closes #269)
This commit is contained in:
parent
303c576f8e
commit
55bf8eaae3
@ -3,6 +3,7 @@ package com.machiav3lli.fdroid.service
|
|||||||
import android.content.BroadcastReceiver
|
import android.content.BroadcastReceiver
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.machiav3lli.fdroid.database.DatabaseX
|
import com.machiav3lli.fdroid.database.DatabaseX
|
||||||
import com.machiav3lli.fdroid.entity.Order
|
import com.machiav3lli.fdroid.entity.Order
|
||||||
import com.machiav3lli.fdroid.entity.Section
|
import com.machiav3lli.fdroid.entity.Section
|
||||||
@ -40,7 +41,7 @@ class PackageChangedReceiver : BroadcastReceiver() {
|
|||||||
else db.installedDao.delete(packageName)
|
else db.installedDao.delete(packageName)
|
||||||
|
|
||||||
// Update updates notification
|
// Update updates notification
|
||||||
context.displayUpdatesNotification(
|
if (Preferences[Preferences.Key.UpdateNotify]) context.displayUpdatesNotification(
|
||||||
db.productDao
|
db.productDao
|
||||||
.queryObject(
|
.queryObject(
|
||||||
installed = true,
|
installed = true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user