implement feedbacks

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2025-06-12 15:38:33 +02:00
parent 7d08bb527b
commit df32926a23
No known key found for this signature in database
GPG Key ID: 4E577DC593B59BDF
3 changed files with 7 additions and 3 deletions

View File

@ -154,7 +154,7 @@ public class FileDetailSharingFragment extends Fragment implements ShareeListAda
fileDataStorageManager = fileActivity.getStorageManager(); fileDataStorageManager = fileActivity.getStorageManager();
ShareRepository shareRepository = new RemoteShareRepository(fileActivity.getClientRepository(), fileActivity, fileDataStorageManager); ShareRepository shareRepository = new RemoteShareRepository(fileActivity.getClientRepository(), fileActivity, fileDataStorageManager);
shareRepository.refreshSharesForFolder(file.getParentRemotePath()); shareRepository.refreshSharesForFolder(file.getRemotePath());
} }
@Override @Override

View File

@ -27,9 +27,13 @@ class RemoteShareRepository(
override fun refreshSharesForFolder(remotePath: String) { override fun refreshSharesForFolder(remotePath: String) {
scope.launch(Dispatchers.IO) { scope.launch(Dispatchers.IO) {
val client = clientRepository.getOwncloudClient() ?: return@launch val client = clientRepository.getOwncloudClient() ?: return@launch
val operation = GetSharesForFileOperation(remotePath, true, true, fileDataStorageManager) val operation = GetSharesForFileOperation(remotePath, true, false, fileDataStorageManager)
@Suppress("DEPRECATION")
val result = operation.execute(client) val result = operation.execute(client)
Log_OC.i(tag, "Remote path for the refresh shares: $remotePath")
if (result.isSuccess) { if (result.isSuccess) {
Log_OC.d(tag, "Successfully refreshed shares for the specified remote path.") Log_OC.d(tag, "Successfully refreshed shares for the specified remote path.")
} else { } else {

View File

@ -10,7 +10,7 @@
*/ */
buildscript { buildscript {
ext { ext {
androidLibraryVersion ="d862794d794a7e8d8b53da98aa801753e684bf52" androidLibraryVersion ="7cb4ea1d22"
androidCommonLibraryVersion = "0.26.0" androidCommonLibraryVersion = "0.26.0"
androidPluginVersion = "8.9.2" androidPluginVersion = "8.9.2"
androidxMediaVersion = "1.5.1" androidxMediaVersion = "1.5.1"