File tree Expand file tree Collapse file tree
app/src/main/java/com/owncloud/android/ui Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments