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"
1818private const val VALUE_KEY = " value"
1919private const val ENABLED_KEY = " enabled"
2020
21- fun OCShare?.toggleAllowDownloadAndSync (
21+ fun toggleAllowDownloadAndSync (
22+ attributes : String? ,
2223 isChecked : Boolean ,
2324 useV2DownloadAttributes : Boolean
2425): String? {
2526 val jsonArray =
26- if (this ?. attributes?.isEmpty() == true ) {
27+ if (attributes?.isEmpty() == true ) {
2728 JSONArray ()
2829 } else {
29- JSONArray (this ?. attributes)
30+ JSONArray (attributes)
3031 }
3132 val downloadAttr = jsonArray.findDownloadAttribute()
3233 val enabledKey = getEnabledKey(useV2DownloadAttributes)
You can’t perform that action at this time.
0 commit comments