Skip to content

Commit 48879ed

Browse files
committed
use lib
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent 272c57a commit 48879ed

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

app/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,11 @@ public List<OCShare> getSharesByPathAndType(String path, ShareType type, String
15381538
private ContentValues createContentValueForRemoteFile(RemoteFile remoteFile) {
15391539
ContentValues contentValues = new ContentValues();
15401540

1541+
OCFile ocFile = getFileByDecryptedRemotePath(remoteFile.getRemotePath());
1542+
if (ocFile != null) {
1543+
contentValues.put(ProviderTableMeta.OCSHARES_FILE_SOURCE, ocFile.getFileId());
1544+
}
1545+
15411546
contentValues.put(ProviderTableMeta.OCSHARES_PATH, remoteFile.getRemotePath());
15421547
boolean isDirectory = MimeTypeUtil.isFolder(remoteFile.getMimeType());
15431548
contentValues.put(ProviderTableMeta.OCSHARES_IS_DIRECTORY, isDirectory);

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 ="d862794d794a7e8d8b53da98aa801753e684bf52"
13+
androidLibraryVersion ="7cb4ea1d22"
1414
androidCommonLibraryVersion = "0.25.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
@@ -11383,6 +11383,14 @@
1138311383
<sha256 value="b03adb110643513771101c07561b36da33381566a04fe43f0e704a98e14de9cf" origin="Generated by Gradle" reason="Artifact is not signed"/>
1138411384
</artifact>
1138511385
</component>
11386+
<component group="com.github.nextcloud" name="android-library" version="7cb4ea1d22">
11387+
<artifact name="android-library-7cb4ea1d22.aar">
11388+
<sha256 value="1cf359d041e88438df84743587eacd2a09997a6d9f1183df8d7e360917cd9c14" origin="Generated by Gradle" reason="Artifact is not signed"/>
11389+
</artifact>
11390+
<artifact name="android-library-7cb4ea1d22.module">
11391+
<sha256 value="7dab0f91c62dcc0e1e07b026c517a97bc62edf90b5c874bd0243b4fad814170e" origin="Generated by Gradle" reason="Artifact is not signed"/>
11392+
</artifact>
11393+
</component>
1138611394
<component group="com.github.nextcloud" name="android-library" version="84711877b4703f8df3d638a016419b4aa731db2b">
1138711395
<artifact name="android-library-84711877b4703f8df3d638a016419b4aa731db2b.aar">
1138811396
<sha256 value="d801b368fc7d4d5d2d2852765442ccbf7df21f0a9198d369181637a8142914cc" origin="Generated by Gradle" reason="Artifact is not signed"/>

0 commit comments

Comments
 (0)