Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edff81ea authored by Bo Majewski's avatar Bo Majewski
Browse files

[DocsUI, Search]: Remove level 15 API

CharSequence#isEmpty is API level 15. DocumentsUI must target API
level 11. Adjusting.

Bug: 415881678
Test: m DocumentsUIGoogle
Flag: com.android.documentsui.flags.use_search_v2_read_only
Change-Id: I6d1c25e2ad7d2619632db657717275ea58f5012d
parent 25240f01
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -315,11 +315,8 @@ public class SearchViewManager implements

                @Override
                public void onTextChanged(CharSequence s, int start, int before, int count) {
                    if (!s.isEmpty()) {
                        dockedSearchClear.setVisibility(View.VISIBLE);
                    } else {
                        dockedSearchClear.setVisibility(View.INVISIBLE);
                    }
                    dockedSearchClear.setVisibility(
                            TextUtils.isEmpty(s) ? View.INVISIBLE : View.VISIBLE);
                    onQueryTextChange(s.toString());
                }