Add Android auto-upload mobile data limit
This commit is contained in:
+4
-2
@@ -26,6 +26,9 @@ data class FolderBackUpConfiguration(
|
||||
val uploadPath: String,
|
||||
val wifiOnly: Boolean,
|
||||
val allowRoaming: Boolean,
|
||||
val mobileDataLimitBytes: Long,
|
||||
val mobileDataPeriodStartTimestamp: Long,
|
||||
val mobileDataBytesQueuedInPeriod: Long,
|
||||
val chargingOnly: Boolean,
|
||||
val lastSyncTimestamp: Long,
|
||||
val name: String,
|
||||
@@ -40,6 +43,7 @@ data class FolderBackUpConfiguration(
|
||||
const val pictureUploadsName = "Picture uploads"
|
||||
const val videoUploadsName = "Video uploads"
|
||||
const val initialSyncTimestamp = 0L
|
||||
private const val SOURCE_PATH_SEPARATOR = "\n"
|
||||
|
||||
fun parseSourcePaths(sourcePath: String): List<String> =
|
||||
sourcePath
|
||||
@@ -54,8 +58,6 @@ data class FolderBackUpConfiguration(
|
||||
.filter { it.isNotEmpty() }
|
||||
.distinct()
|
||||
.joinToString(SOURCE_PATH_SEPARATOR)
|
||||
|
||||
private const val SOURCE_PATH_SEPARATOR = "\n"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user