Skip to content

Commit 12bed58

Browse files
committed
Disable catalog download when roaming
1 parent ffe5515 commit 12bed58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/localcatalog/WooPosLocalCatalogSyncScheduler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class WooPosLocalCatalogSyncScheduler @Inject constructor(
111111

112112
private suspend fun getConstraintsBasedOnPreference(): Constraints {
113113
val allowCellular = preferencesRepository.allowCellularDataUpdate.first()
114-
val networkType = if (allowCellular) NetworkType.CONNECTED else NetworkType.UNMETERED
114+
val networkType = if (allowCellular) NetworkType.NOT_ROAMING else NetworkType.UNMETERED
115115

116116
return Constraints.Builder()
117117
.setRequiredNetworkType(networkType)

0 commit comments

Comments
 (0)