From a094abd9efd7a35a218b0839acaef74db758e5bb Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Sun, 1 Sep 2024 19:16:17 +0530 Subject: [PATCH] Use constant --- .../newpipe/ui/components/channel/AboutChannelSection.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/channel/AboutChannelSection.kt b/app/src/main/java/org/schabi/newpipe/ui/components/channel/AboutChannelSection.kt index a37d7711e..71180969a 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/channel/AboutChannelSection.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/channel/AboutChannelSection.kt @@ -15,6 +15,7 @@ import androidx.compose.ui.unit.dp import org.schabi.newpipe.R import org.schabi.newpipe.extractor.Image import org.schabi.newpipe.extractor.Image.ResolutionLevel +import org.schabi.newpipe.extractor.stream.StreamExtractor import org.schabi.newpipe.ui.components.metadata.ImageMetadataItem import org.schabi.newpipe.ui.components.metadata.MetadataItem import org.schabi.newpipe.ui.components.metadata.TagsSection @@ -35,7 +36,7 @@ fun AboutChannelSection(channelInfo: ParcelableChannelInfo) { Text(text = description) } - if (count != -1L) { + if (count != StreamExtractor.UNKNOWN_SUBSCRIBER_COUNT) { MetadataItem( title = R.string.metadata_subscribers, value = Localization.shortCount(LocalContext.current, count)