Skip to content

Commit 77770cf

Browse files
committed
fix search view enability
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent f64c6ed commit 77770cf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,16 @@ public void onStop() {
288288
searchConfig.reset();
289289
}
290290

291+
private void resetSearchView() {
292+
toggleSearchViewEnable(binding.searchView, true);
293+
binding.searchView.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
294+
binding.searchView.setQueryHint(null);
295+
binding.searchView.setQuery("", false);
296+
binding.pickContactEmailBtn.setVisibility(View.VISIBLE);
297+
}
298+
291299
private void setupView() {
300+
resetSearchView();
292301
setShareWithYou();
293302

294303
OCFile parentFile = fileDataStorageManager.getFileById(file.getParentId());
@@ -743,7 +752,6 @@ public void unShare(OCShare share) {
743752
if (binding.sharesListInternal.getAdapter() instanceof ShareeListAdapter adapter) {
744753
adapter.remove(share);
745754
if (entity != null && adapter.isAdapterEmpty()) {
746-
toggleSearchViewEnable(binding.searchView, true);
747755
entity.setSharedWithSharee(0);
748756
fileDataStorageManager.updateFileEntity(entity);
749757
}

0 commit comments

Comments
 (0)