From d268577443dd2172c0934a3120e6d81e7c510e7d Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 9 Dec 2025 09:49:18 -0500 Subject: [PATCH] Adds the missing when clauses due to the change in reports. --- .../java/com/vitorpamplona/amethyst/ui/note/types/Report.kt | 2 +- .../amethyst/ui/screen/loggedIn/report/ReportNoteDialog.kt | 2 +- amethyst/src/main/res/values/strings.xml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Report.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Report.kt index c2edd7deb..5a861de6a 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Report.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Report.kt @@ -61,9 +61,9 @@ fun RenderReport( ReportType.IMPERSONATION -> stringRes(R.string.impersonation) ReportType.ILLEGAL -> stringRes(R.string.illegal_behavior) ReportType.MALWARE -> stringRes(R.string.malware) - ReportType.MOD -> stringRes(R.string.mod) ReportType.OTHER -> stringRes(R.string.other) ReportType.HARASSMENT -> stringRes(R.string.harassment) + ReportType.VIOLENCE -> stringRes(R.string.violence) null -> stringRes(R.string.other) } }.toSet() diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/report/ReportNoteDialog.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/report/ReportNoteDialog.kt index c10933db8..f671ea691 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/report/ReportNoteDialog.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/report/ReportNoteDialog.kt @@ -85,7 +85,7 @@ fun ReportNoteDialog( Pair(ReportType.NUDITY, stringRes(R.string.report_dialog_nudity)), Pair(ReportType.ILLEGAL, stringRes(R.string.report_dialog_illegal)), Pair(ReportType.MALWARE, stringRes(R.string.report_malware)), - Pair(ReportType.MOD, stringRes(R.string.report_mod)), + Pair(ReportType.VIOLENCE, stringRes(R.string.violence)), ) val reasonOptions = remember { reportTypes.map { TitleExplainer(it.second) }.toImmutableList() } diff --git a/amethyst/src/main/res/values/strings.xml b/amethyst/src/main/res/values/strings.xml index 85d3de401..61221bc95 100644 --- a/amethyst/src/main/res/values/strings.xml +++ b/amethyst/src/main/res/values/strings.xml @@ -23,6 +23,7 @@ Illegal Behavior Other Harassment + Violence Unknown Relay Icon Unknown Author