diff --git a/app/src/main/java/com/github/libretube/ChannelFragment.kt b/app/src/main/java/com/github/libretube/ChannelFragment.kt index 6288739dd..0894d58ff 100644 --- a/app/src/main/java/com/github/libretube/ChannelFragment.kt +++ b/app/src/main/java/com/github/libretube/ChannelFragment.kt @@ -4,8 +4,6 @@ package com.github.libretube import android.annotation.SuppressLint import android.app.Activity import android.content.Context -import android.media.Image -import android.opengl.Visibility import android.os.Bundle import android.util.Log import android.util.TypedValue @@ -210,7 +208,8 @@ class ChannelFragment : Fragment() { runOnUiThread { view.findViewById(R.id.channel_scrollView).visibility = View.VISIBLE view.findViewById(R.id.channel_name).text=response.name - if (response.verified) view.findViewById(R.id.channel_verified).visibility = View.VISIBLE + val channelVerified = view.findViewById(R.id.channel_verified) + if (response.verified) channelVerified.visibility = View.VISIBLE view.findViewById(R.id.channel_subs).text=resources.getString(R.string.subscribers, response.subscriberCount.formatShort()) view.findViewById(R.id.channel_description).text=response.description val bannerImage = view.findViewById(R.id.channel_banner)