use existing method via eventbus to encrypt folder

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2022-10-31 15:22:50 +01:00
parent ef716f4f8f
commit 32fab01c91
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -1088,7 +1088,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