Merge pull request #161 from ultrasonic/bug/stray-symbol-in-mp3-list

Bug/stray symbol in mp3 list
This commit is contained in:
Yahor Berdnikau 2018-02-08 22:03:24 +01:00 committed by GitHub
commit 2f97d0fe16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,7 @@ package org.moire.ultrasonic.view;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
@ -168,7 +169,10 @@ public class SongView extends UpdateView implements Checkable
String suffix = song.getSuffix();
String transcodedSuffix = song.getTranscodedSuffix();
fileFormat = transcodedSuffix == null || transcodedSuffix.equals(suffix) || (song.isVideo() && Util.getVideoPlayerType(this.context) != VideoPlayerType.FLASH) ? suffix : String.format("%s > %s", suffix, transcodedSuffix);
fileFormat = TextUtils.isEmpty(transcodedSuffix) ||
transcodedSuffix.equals(suffix) ||
(song.isVideo() && Util.getVideoPlayerType(this.context) != VideoPlayerType.FLASH) ?
suffix : String.format("%s > %s", suffix, transcodedSuffix);
String artistName = song.getArtist();