Skip to content

Commit d055512

Browse files
Merge pull request #17097 from nextcloud/fix/e2ee-folder-shortcut-open
fix: e2ee folder shortcut open
2 parents 5606676 + d5ed2e1 commit d055512

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,8 @@ class FileDisplayActivity :
701701
Handler(Looper.getMainLooper()).post {
702702
(supportFragmentManager.findFragmentByTag(TAG_LIST_OF_FILES) as? OCFileListFragment)?.let { fragment ->
703703
leftFragment = fragment
704-
setupHomeSearchToolbarWithSortAndListButtons()
704+
fragment.setFileDepth(file)
705+
updateActionBarTitleAndHomeButton(file)
705706
fragment.onItemClicked(file)
706707
}
707708
}

app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ public void onItemClicked(OCFile file) {
12571257
}
12581258
}
12591259

1260-
private void setFileDepth(OCFile file) {
1260+
public void setFileDepth(OCFile file) {
12611261
fileDepth = OCFileExtensionsKt.getDepth(file);
12621262
}
12631263

@@ -1291,6 +1291,10 @@ private void listenSetupEncryptionDialogResult() {
12911291
boolean result = bundle.getBoolean(SetupEncryptionDialogFragment.SUCCESS, false);
12921292
if (!result) {
12931293
Log_OC.d(TAG, "setup encryption dialog is dismissed");
1294+
boolean cancelled = bundle.getBoolean(SetupEncryptionDialogFragment.RESULT_KEY_CANCELLED, false);
1295+
if (cancelled) {
1296+
browseToRoot();
1297+
}
12941298
return;
12951299
}
12961300

0 commit comments

Comments
 (0)