Simplify redundant conditional
This commit is contained in:
parent
7b0edf77d6
commit
7cc4495d19
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue