mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-24 17:10:33 +00:00
Merge pull request #294 from prashantkhurana/Feature/Hide-uploader-bug
Fix to hide uploader correctly
This commit is contained in:
commit
674e1c0519
@ -6,12 +6,12 @@ import android.view.ViewGroup;
|
|||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import org.schabi.newpipe.extractor.AbstractVideoInfo;
|
|
||||||
import org.schabi.newpipe.extractor.StreamPreviewInfo;
|
|
||||||
|
|
||||||
import com.nostra13.universalimageloader.core.DisplayImageOptions;
|
import com.nostra13.universalimageloader.core.DisplayImageOptions;
|
||||||
import com.nostra13.universalimageloader.core.ImageLoader;
|
import com.nostra13.universalimageloader.core.ImageLoader;
|
||||||
|
|
||||||
|
import org.schabi.newpipe.extractor.AbstractVideoInfo;
|
||||||
|
import org.schabi.newpipe.extractor.StreamPreviewInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by Christian Schabesberger on 24.10.15.
|
* Created by Christian Schabesberger on 24.10.15.
|
||||||
*
|
*
|
||||||
@ -72,7 +72,7 @@ public class VideoInfoItemViewCreator {
|
|||||||
if(info.uploader != null && !info.uploader.isEmpty()) {
|
if(info.uploader != null && !info.uploader.isEmpty()) {
|
||||||
holder.itemUploaderView.setText(info.uploader);
|
holder.itemUploaderView.setText(info.uploader);
|
||||||
} else {
|
} else {
|
||||||
holder.itemDurationView.setVisibility(View.INVISIBLE);
|
holder.itemUploaderView.setVisibility(View.INVISIBLE);
|
||||||
}
|
}
|
||||||
if(info.duration > 0) {
|
if(info.duration > 0) {
|
||||||
holder.itemDurationView.setText(getDurationString(info.duration));
|
holder.itemDurationView.setText(getDurationString(info.duration));
|
||||||
|
Loading…
Reference in New Issue
Block a user