From c0432143bb073adfd08f906d10c237c669145602 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 27 Nov 2022 14:43:59 +0100 Subject: [PATCH] fix overflowing progress bar and `comments disabled` text --- .../main/java/com/github/libretube/ui/sheets/CommentsSheet.kt | 2 +- app/src/main/res/values/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/sheets/CommentsSheet.kt b/app/src/main/java/com/github/libretube/ui/sheets/CommentsSheet.kt index eed7a9dd5..007d7eb19 100644 --- a/app/src/main/java/com/github/libretube/ui/sheets/CommentsSheet.kt +++ b/app/src/main/java/com/github/libretube/ui/sheets/CommentsSheet.kt @@ -63,6 +63,7 @@ class CommentsSheet( Log.e(TAG(), e.toString()) return@launchWhenCreated } + binding.progress.visibility = View.GONE if (response.disabled == true) { withContext(Dispatchers.Main) { binding.errorTV.visibility = View.VISIBLE @@ -76,7 +77,6 @@ class CommentsSheet( } return@launchWhenCreated } - binding.progress.visibility = View.GONE commentsAdapter.updateItems(response.comments) nextPage = response.nextpage onMoreComments.invoke(response.comments, response.nextpage) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3d6df189f..f090dbed5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -396,7 +396,7 @@ Use swipe gesture to adjust the brightness and volume. Defaults Pop-Up - Comments are disabled by the author. + Comments are disabled by the uploader. This video has no comments available.