Skip to content

Commit c875ba4

Browse files
committed
fix share creation via allow download and sync option
Signed-off-by: alperozturk <[email protected]>
1 parent c08133a commit c875ba4

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

app/src/androidTest/java/com/nextcloud/utils/SharePermissionManagerTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ class SharePermissionManagerTest {
256256
shareType = ShareType.USER
257257
permissions = 17
258258
}
259-
ocShare.attributes = ocShare.toggleAllowDownloadAndSync(
259+
ocShare.attributes = toggleAllowDownloadAndSync(
260+
ocShare.attributes,
260261
isChecked = true,
261262
useV2DownloadAttributes = false
262263
)

app/src/main/java/com/owncloud/android/ui/fragment/FileDetailsSharingProcessFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ class FileDetailsSharingProcessFragment :
656656

657657
if (!isPublicShare()) {
658658
binding.shareAllowDownloadAndSyncCheckbox.setOnCheckedChangeListener { _, isChecked ->
659-
val result = share.toggleAllowDownloadAndSync(isChecked, useV2DownloadAttributes())
659+
val result = toggleAllowDownloadAndSync(share?.attributes, isChecked, useV2DownloadAttributes())
660660
share?.attributes = result
661661
downloadAttribute = result
662662
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
buildscript {
1212
ext {
13-
androidLibraryVersion ="4c342f9031"
13+
androidLibraryVersion ="8514831f30"
1414
androidCommonLibraryVersion = "0.26.0"
1515
androidPluginVersion = "8.9.2"
1616
androidxMediaVersion = "1.5.1"

gradle/verification-metadata.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12597,6 +12597,14 @@
1259712597
<sha256 value="de2e7d2fdde1d6981af8fcd54812dfe510ab7e22bdf8225ed569616b6c1155f4" origin="Generated by Gradle" reason="Artifact is not signed"/>
1259812598
</artifact>
1259912599
</component>
12600+
<component group="com.github.nextcloud" name="android-library" version="8514831f30">
12601+
<artifact name="android-library-8514831f30.aar">
12602+
<sha256 value="3306e4c894ae616dbae2579079b23bd07fe8114045e21fb53f198ce675052e06" origin="Generated by Gradle" reason="Artifact is not signed"/>
12603+
</artifact>
12604+
<artifact name="android-library-8514831f30.module">
12605+
<sha256 value="28848cb53868af301c356100ab5221078475c907b709603545d70e522bc9e78c" origin="Generated by Gradle" reason="Artifact is not signed"/>
12606+
</artifact>
12607+
</component>
1260012608
<component group="com.github.nextcloud" name="android-library" version="856c2516c6dd92058535d726ab55f0aef19ee089">
1260112609
<artifact name="android-library-856c2516c6dd92058535d726ab55f0aef19ee089.aar">
1260212610
<sha256 value="dc7c01113fc8333aa61ead05bc5058f65857f9d57448b7328f26db24922b6662" origin="Generated by Gradle" reason="Artifact is not signed"/>

0 commit comments

Comments
 (0)