Skip to content

Commit

Permalink
After screen refresh search is no longer collapsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayChaurasia98 authored and surinder-tsys committed Aug 28, 2023
1 parent f01aa28 commit 905222c
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1340,17 +1340,6 @@ public void listDirectory(OCFile directory, OCFile file, boolean onlyOnDevice, b
}
}

if (searchView != null && !searchView.isIconified() && !fromSearch) {
searchView.post(() -> {
searchView.setQuery("", false);
Activity activity;
if ((activity = getActivity()) != null && activity instanceof FileDisplayActivity) {
FileDisplayActivity fileDisplayActivity = (FileDisplayActivity) activity;
fileDisplayActivity.hideSearchView(fileDisplayActivity.getCurrentDir());
}
});
}

mAdapter.swapDirectory(
accountManager.getUser(),
directory,
Expand Down

0 comments on commit 905222c

Please sign in to comment.