mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 23:12:51 +00:00
Only set the query if its non-empty when switching icon packs
This fixes an issue where the categories would be hidden when switching icon packs
This commit is contained in:
parent
43ebe402ce
commit
1d848947d9
1 changed files with 6 additions and 1 deletions
|
@ -140,7 +140,12 @@ public class IconPickerDialog {
|
||||||
popupMenu.setOnMenuItemClickListener(item -> {
|
popupMenu.setOnMenuItemClickListener(item -> {
|
||||||
IconPack pack = iconPacks.get(iconPackNames.indexOf(item.getTitle().toString()));
|
IconPack pack = iconPacks.get(iconPackNames.indexOf(item.getTitle().toString()));
|
||||||
adapter.loadIcons(pack);
|
adapter.loadIcons(pack);
|
||||||
adapter.setQuery(iconSearch.getText().toString());
|
|
||||||
|
String query = iconSearch.getText().toString();
|
||||||
|
if (!query.isEmpty()) {
|
||||||
|
adapter.setQuery(query);
|
||||||
|
}
|
||||||
|
|
||||||
textIconPack.setText(pack.getName());
|
textIconPack.setText(pack.getName());
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue