Try Nr. 2000

This commit is contained in:
Bnyro 2022-05-05 18:36:54 +02:00
parent fa3ae8150a
commit 3623a082b7
3 changed files with 3 additions and 4 deletions

View File

@ -209,8 +209,7 @@ class ChannelFragment : Fragment() {
runOnUiThread {
view.findViewById<ScrollView>(R.id.channel_scrollView).visibility = View.VISIBLE
view.findViewById<TextView>(R.id.channel_name).text=response.name
var subCount = response.subscriberCount.formatShort()
view.findViewById<TextView>(R.id.channel_subs).text=resources.getString(R.string.subscribers).replace("#subCount", "$subCount")
view.findViewById<TextView>(R.id.channel_subs).text=resources.getString(R.string.subscribers, response.subscriberCount.formatShort())
view.findViewById<TextView>(R.id.channel_description).text=response.description
val bannerImage = view.findViewById<ImageView>(R.id.channel_banner)
val channelImage = view.findViewById<ImageView>(R.id.channel_image)

View File

@ -57,5 +57,5 @@
<string name="systemDefault">Automatisch</string>
<string name="lightTheme">Hell</string>
<string name="darkTheme">Dunkel</string>
<string name="subscribers">#subCount Abonnenten</string>
<string name="subscribers">%1$s Abonnenten</string>
</resources>

View File

@ -57,5 +57,5 @@
<string name="systemDefault">System Default</string>
<string name="lightTheme">Light Theme</string>
<string name="darkTheme">Dark Theme</string>
<string name="subscribers">#subCount subscribers</string>
<string name="subscribers">%1$s subscribers</string>
</resources>