mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-06-05 18:13:05 +03:00
Merge pull request #161 from ultrasonic/bug/stray-symbol-in-mp3-list
Bug/stray symbol in mp3 list
This commit is contained in:
commit
2f97d0fe16
@ -21,6 +21,7 @@ package org.moire.ultrasonic.view;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.drawable.AnimationDrawable;
|
import android.graphics.drawable.AnimationDrawable;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -168,7 +169,10 @@ public class SongView extends UpdateView implements Checkable
|
|||||||
String suffix = song.getSuffix();
|
String suffix = song.getSuffix();
|
||||||
String transcodedSuffix = song.getTranscodedSuffix();
|
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();
|
String artistName = song.getArtist();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user