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:
Matthew Crossman
2022-01-04 21:44:24 +11:00
parent 5fbb6dcb61
commit 430b18e77b
4 changed files with 8 additions and 8 deletions

View File

@ -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(