File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
library/src/main/java/com/owncloud/android/lib/resources/shares/extensions Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,16 @@ private const val PERMISSIONS_KEY = "permissions"
18
18
private const val VALUE_KEY = " value"
19
19
private const val ENABLED_KEY = " enabled"
20
20
21
- fun OCShare?.toggleAllowDownloadAndSync (
21
+ fun toggleAllowDownloadAndSync (
22
+ attributes : String? ,
22
23
isChecked : Boolean ,
23
24
useV2DownloadAttributes : Boolean
24
25
): String? {
25
26
val jsonArray =
26
- if (this ?. attributes?.isEmpty() == true ) {
27
+ if (attributes?.isEmpty() == true ) {
27
28
JSONArray ()
28
29
} else {
29
- JSONArray (this ?. attributes)
30
+ JSONArray (attributes)
30
31
}
31
32
val downloadAttr = jsonArray.findDownloadAttribute()
32
33
val enabledKey = getEnabledKey(useV2DownloadAttributes)
You can’t perform that action at this time.
0 commit comments