diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/video/VideoDescriptionSection.kt b/app/src/main/java/org/schabi/newpipe/ui/components/video/VideoDescriptionSection.kt index f43092b83da..62d4c1dc563 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/video/VideoDescriptionSection.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/video/VideoDescriptionSection.kt @@ -160,12 +160,10 @@ fun VideoDescriptionSection(streamInfo: StreamInfo) { } } - if (streamInfo.ageLimit != StreamExtractor.NO_AGE_LIMIT) { + val ageLimit = streamInfo.ageLimit + if (ageLimit != StreamExtractor.NO_AGE_LIMIT) { item { - MetadataItem( - title = R.string.metadata_age_limit, - value = streamInfo.ageLimit.toString() - ) + MetadataItem(title = R.string.metadata_age_limit, value = ageLimit.toString()) } }