Merge pull request #10961 from nextcloud/encryptNotOnMainThread

use existing method via eventbus to encrypt folder
This commit is contained in:
Álvaro Brey 2022-11-02 17:23:46 +01:00 committed by GitHub
commit ea1c43bd44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1081,7 +1081,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
OCFile file = mAdapter.getItem(position);
if (file != null) {
encryptFolder(file.getLocalId(), file.getRemoteId(), file.getRemotePath(), true);
mContainerActivity.getFileOperationsHelper().toggleEncryption(file, true);
}
// update state and view of this fragment