From 1e54f20d0331d73f73d3e62671bc87c34ada87bc Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 11 Sep 2022 17:17:36 +0200 Subject: [PATCH] fix inconsistent label --- .../libretube/extensions/SetFormattedDuration.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/src/main/java/com/github/libretube/extensions/SetFormattedDuration.kt b/app/src/main/java/com/github/libretube/extensions/SetFormattedDuration.kt index 502d71e73..2b8753b81 100644 --- a/app/src/main/java/com/github/libretube/extensions/SetFormattedDuration.kt +++ b/app/src/main/java/com/github/libretube/extensions/SetFormattedDuration.kt @@ -7,20 +7,8 @@ import com.github.libretube.util.ThemeHelper fun TextView.setFormattedDuration(duration: Long) { val text = if (duration < 0L) { - this.setBackgroundColor( - ThemeHelper.getThemeColor( - context, - R.attr.colorPrimaryDark - ) - ) this.context.getString(R.string.live) } else if (duration in 0L..60L) { - this.setBackgroundColor( - ThemeHelper.getThemeColor( - context, - R.attr.colorPrimaryDark - ) - ) this.context.getString(R.string.yt_shorts) } else { DateUtils.formatElapsedTime(duration)