Skip to content

Commit 7dbf763

Browse files
committed
fix wrong usages
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent 21e7896 commit 7dbf763

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,17 +1542,17 @@ private ContentValues createContentValueForRemoteFile(RemoteFile remoteFile) {
15421542
boolean isDirectory = MimeTypeUtil.isFolder(remoteFile.getMimeType());
15431543
contentValues.put(ProviderTableMeta.OCSHARES_IS_DIRECTORY, isDirectory);
15441544
contentValues.put(ProviderTableMeta.OCSHARES_ACCOUNT_OWNER, user.getAccountName());
1545+
contentValues.put(ProviderTableMeta.OCSHARES_USER_ID, remoteFile.getOwnerId());
15451546

15461547
if (remoteFile.getSharees().length > 0) {
15471548
final var sharee = remoteFile.getSharees()[0];
15481549
contentValues.put(ProviderTableMeta.OCSHARES_SHARE_WITH_DISPLAY_NAME, sharee.getDisplayName());
1550+
contentValues.put(ProviderTableMeta.OCSHARES_SHARE_WITH, sharee.getUserId());
15491551

15501552
ShareType shareType = sharee.getShareType();
15511553
if (shareType != null) {
15521554
contentValues.put(ProviderTableMeta.OCSHARES_SHARE_TYPE, shareType.getValue());
15531555
}
1554-
1555-
contentValues.put(ProviderTableMeta.OCSHARES_USER_ID, sharee.getUserId());
15561556
}
15571557

15581558
if (!remoteFile.getFileDownloadLimit().isEmpty()) {

0 commit comments

Comments
 (0)