From 5b8dd056145e47ecd618fabd93739012898225c1 Mon Sep 17 00:00:00 2001 From: "maarten.vercruysse" Date: Mon, 20 May 2024 16:59:36 +0200 Subject: [PATCH] Fix content description for upvotes --- .../main/java/com/jerboa/ui/components/common/VoteHelpers.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/jerboa/ui/components/common/VoteHelpers.kt b/app/src/main/java/com/jerboa/ui/components/common/VoteHelpers.kt index a09142a38..dac4b019d 100644 --- a/app/src/main/java/com/jerboa/ui/components/common/VoteHelpers.kt +++ b/app/src/main/java/com/jerboa/ui/components/common/VoteHelpers.kt @@ -29,10 +29,10 @@ fun VoteGeneric( if (myVote == 1) { stringResource(R.string.upvoted) } else { - stringResource(R.string.downvoted) + stringResource(R.string.upvote) } } else { - if (myVote == 1) { + if (myVote == -1) { stringResource(R.string.downvoted) } else { stringResource(R.string.downvote)