Merge pull request #105 from masipcat/master
Fix search for some backends
This commit is contained in:
commit
aa4c877046
|
@ -65,10 +65,10 @@ public class QueryReceiverActivity extends AppCompatActivity {
|
||||||
intent.putExtra(Constants.INTENT_EXTRA_VIEW_ALBUM, true);
|
intent.putExtra(Constants.INTENT_EXTRA_VIEW_ALBUM, true);
|
||||||
if (albumId.indexOf("ar-") == 0) {
|
if (albumId.indexOf("ar-") == 0) {
|
||||||
intent.putExtra(Constants.INTENT_EXTRA_NAME_ARTIST, true);
|
intent.putExtra(Constants.INTENT_EXTRA_NAME_ARTIST, true);
|
||||||
albumId = albumId.replace("ar-", "");
|
albumId = albumId.replaceFirst("ar-", "");
|
||||||
} else if (albumId.indexOf("so-") == 0) {
|
} else if (albumId.indexOf("so-") == 0) {
|
||||||
intent.putExtra(Constants.INTENT_EXTRA_SEARCH_SONG, name);
|
intent.putExtra(Constants.INTENT_EXTRA_SEARCH_SONG, name);
|
||||||
albumId = albumId.replace("so-", "");
|
albumId = albumId.replaceFirst("so-", "");
|
||||||
}
|
}
|
||||||
intent.putExtra(Constants.INTENT_EXTRA_NAME_ID, albumId);
|
intent.putExtra(Constants.INTENT_EXTRA_NAME_ID, albumId);
|
||||||
if (name != null) {
|
if (name != null) {
|
||||||
|
|
Loading…
Reference in New Issue