mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-20 14:19:19 +00:00
Rename auto install preference to better reflect behaviour.
Auto install preference always runs after a sync, even if it's manual. The names of the preference & strings have been updated to reflect this new behaviour.
This commit is contained in:
@ -403,7 +403,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
|
||||
currentTask = null
|
||||
handleNextTask(false)
|
||||
if (result.isNotEmpty()) {
|
||||
if (Preferences[Preferences.Key.AutoSyncInstall])
|
||||
if (Preferences[Preferences.Key.InstallAfterSync])
|
||||
runAutoUpdate(result)
|
||||
if (hasUpdates && Preferences[Preferences.Key.UpdateNotify] &&
|
||||
updateNotificationBlockerFragment?.get()?.isAdded == true
|
||||
@ -434,7 +434,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
|
||||
* @see SyncService.displayUpdatesNotification
|
||||
*/
|
||||
private fun runAutoUpdate(productItems: List<ProductItem>) {
|
||||
if (Preferences[Preferences.Key.AutoSyncInstall]) {
|
||||
if (Preferences[Preferences.Key.InstallAfterSync]) {
|
||||
// run startUpdate on every item
|
||||
productItems.map { productItem ->
|
||||
Pair(
|
||||
|
Reference in New Issue
Block a user