Skip to content

Commit

Permalink
Merge branch 'dev' into timestampClickFix
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiGr authored Mar 26, 2019
2 parents 07f8dcb + e98f68e commit bf845be
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.view.ViewGroup;
import android.widget.TextView;

import org.jsoup.helper.StringUtil;
import org.schabi.newpipe.R;
import org.schabi.newpipe.extractor.InfoItem;
import org.schabi.newpipe.extractor.comments.CommentsInfoItem;
Expand Down Expand Up @@ -76,6 +77,7 @@ public void updateFromItem(final InfoItem infoItem) {
itemThumbnailView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(StringUtil.isBlank(item.getAuthorEndpoint())) return;
try {
final AppCompatActivity activity = (AppCompatActivity) itemBuilder.getContext();
NavigationHelper.openChannelFragment(
Expand Down

0 comments on commit bf845be

Please sign in to comment.