Skip to content

Commit

Permalink
After screen refresh search is no longer collapsing.
Browse files Browse the repository at this point in the history
Search is no longer collapsing after refreshing the screen.
  • Loading branch information
AkshayChaurasia98 authored and surinder-tsys committed Jul 5, 2023
1 parent 99dd54b commit d3df435
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1339,18 +1339,6 @@ public void listDirectory(OCFile directory, OCFile file, boolean onlyOnDevice, b
return; // no files, wait for sync
}
}

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 d3df435

Please sign in to comment.