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