Simplify redundant conditional

This commit is contained in:
Andrew Rabert 2018-04-23 22:23:32 -04:00
parent 7b0edf77d6
commit 7cc4495d19
1 changed files with 1 additions and 3 deletions

View File

@ -557,9 +557,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
} }
private SubsonicFragment getNewFragment(String fragmentType) { private SubsonicFragment getNewFragment(String fragmentType) {
if ("Artist".equals(fragmentType)) { if ("Playlist".equals(fragmentType)) {
return new SelectArtistFragment();
} else if ("Playlist".equals(fragmentType)) {
return new SelectPlaylistFragment(); return new SelectPlaylistFragment();
} else if ("Download".equals(fragmentType)) { } else if ("Download".equals(fragmentType)) {
return new DownloadFragment(); return new DownloadFragment();