From 8921543ef5143c84aadec34e340b850f93a8d992 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Mon, 16 Mar 2020 19:30:41 +0500 Subject: [PATCH] Fix breadcrumb navigation --- .../main/java/org/mian/gitnex/fragments/FilesFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mian/gitnex/fragments/FilesFragment.java b/app/src/main/java/org/mian/gitnex/fragments/FilesFragment.java index 4387c28a..8c3da1b2 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/FilesFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/FilesFragment.java @@ -158,7 +158,10 @@ public class FilesFragment extends Fragment implements FilesAdapter.FilesAdapter String filterDir = fileStructure.getText().toString(); String result = filterDir.substring(0, filterDir.indexOf(item.getSelectedItem())); fileStructure.setText(result + item.getSelectedItem()); - fetchDataAsyncSub(instanceUrl, Authorization.returnAuthentication(getContext(), loginUid, instanceToken), repoOwner, repoName, finalDirName_); + + String currentIndex = (result + item.getSelectedItem()).substring(1); + + fetchDataAsyncSub(instanceUrl, Authorization.returnAuthentication(getContext(), loginUid, instanceToken), repoOwner, repoName, currentIndex); }