implement feedbacks
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
7d08bb527b
commit
df32926a23
@ -154,7 +154,7 @@ public class FileDetailSharingFragment extends Fragment implements ShareeListAda
|
||||
|
||||
fileDataStorageManager = fileActivity.getStorageManager();
|
||||
ShareRepository shareRepository = new RemoteShareRepository(fileActivity.getClientRepository(), fileActivity, fileDataStorageManager);
|
||||
shareRepository.refreshSharesForFolder(file.getParentRemotePath());
|
||||
shareRepository.refreshSharesForFolder(file.getRemotePath());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -27,9 +27,13 @@ class RemoteShareRepository(
|
||||
override fun refreshSharesForFolder(remotePath: String) {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
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)
|
||||
|
||||
Log_OC.i(tag, "Remote path for the refresh shares: $remotePath")
|
||||
|
||||
if (result.isSuccess) {
|
||||
Log_OC.d(tag, "Successfully refreshed shares for the specified remote path.")
|
||||
} else {
|
||||
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
buildscript {
|
||||
ext {
|
||||
androidLibraryVersion ="d862794d794a7e8d8b53da98aa801753e684bf52"
|
||||
androidLibraryVersion ="7cb4ea1d22"
|
||||
androidCommonLibraryVersion = "0.26.0"
|
||||
androidPluginVersion = "8.9.2"
|
||||
androidxMediaVersion = "1.5.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user