1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-30 17:04:51 +01:00

Merge pull request #212 from ultrasonic/fix-fail-to-open-album

Fix app doesn't open album using ID3 tags browsing.
This commit is contained in:
Yahor Berdnikau 2018-07-15 12:06:15 +02:00 committed by GitHub
commit 0f83368755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -887,8 +887,11 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi
}
Intent intent = new Intent(this, SelectAlbumActivity.class);
intent.putExtra(Constants.INTENT_EXTRA_NAME_ID, entry.getParent());
String albumId = Util.getShouldUseId3Tags(this) ? entry.getAlbumId() : entry.getParent();
intent.putExtra(Constants.INTENT_EXTRA_NAME_ID, albumId);
intent.putExtra(Constants.INTENT_EXTRA_NAME_NAME, entry.getAlbum());
intent.putExtra(Constants.INTENT_EXTRA_NAME_IS_ALBUM, true);
intent.putExtra(Constants.INTENT_EXTRA_NAME_PARENT_ID, entry.getParent());
startActivityForResultWithoutTransition(this, intent);
return true;
case R.id.menu_lyrics: