aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-10-30 16:45:30 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-10-30 16:45:30 -0700
commit4e6c087c5973b6246315d6c4aa16577825325069 (patch)
treeda9398ca5878e47cb5b69d5da329baf4b5ace72a
parentd2b711bf7357ffae79fd998cc3744690245ab75f (diff)
downloaddsub-4e6c087c5973b6246315d6c4aa16577825325069.tar.gz
dsub-4e6c087c5973b6246315d6c4aa16577825325069.tar.bz2
dsub-4e6c087c5973b6246315d6c4aa16577825325069.zip
Remove dedicated search button
-rw-r--r--src/github/daneren2005/dsub/fragments/SearchFragment.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SearchFragment.java b/src/github/daneren2005/dsub/fragments/SearchFragment.java
index 6fa86737..566fbbe1 100644
--- a/src/github/daneren2005/dsub/fragments/SearchFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SearchFragment.java
@@ -53,7 +53,6 @@ public class SearchFragment extends SubsonicFragment {
private View artistsHeading;
private View albumsHeading;
private View songsHeading;
- private TextView searchButton;
private View moreArtistsButton;
private View moreAlbumsButton;
private View moreSongsButton;
@@ -93,7 +92,6 @@ public class SearchFragment extends SubsonicFragment {
albumsHeading = buttons.findViewById(R.id.search_albums);
songsHeading = buttons.findViewById(R.id.search_songs);
- searchButton = (TextView) buttons.findViewById(R.id.search_search);
moreArtistsButton = buttons.findViewById(R.id.search_more_artists);
moreAlbumsButton = buttons.findViewById(R.id.search_more_albums);
moreSongsButton = buttons.findViewById(R.id.search_more_songs);
@@ -103,9 +101,7 @@ public class SearchFragment extends SubsonicFragment {
list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
- if (view == searchButton) {
- context.onSearchRequested();
- } else if (view == moreArtistsButton) {
+ if (view == moreArtistsButton) {
expandArtists();
} else if (view == moreAlbumsButton) {
expandAlbums();
@@ -221,7 +217,6 @@ public class SearchFragment extends SubsonicFragment {
public void populateList() {
mergeAdapter = new MergeAdapter();
- mergeAdapter.addView(searchButton, true);
if (searchResult != null) {
List<Artist> artists = searchResult.getArtists();
@@ -258,7 +253,6 @@ public class SearchFragment extends SubsonicFragment {
}
boolean empty = searchResult.getArtists().isEmpty() && searchResult.getAlbums().isEmpty() && searchResult.getSongs().isEmpty();
- searchButton.setText(empty ? R.string.search_no_match : R.string.search_search);
}
list.setAdapter(mergeAdapter);