Adds the missing when clauses due to the change in reports.
This commit is contained in:
@@ -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()
|
||||
|
||||
+1
-1
@@ -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() }
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<string name="illegal_behavior">Illegal Behavior</string>
|
||||
<string name="other">Other</string>
|
||||
<string name="harassment">Harassment</string>
|
||||
<string name="violence">Violence</string>
|
||||
<string name="unknown">Unknown</string>
|
||||
<string name="relay_icon">Relay Icon</string>
|
||||
<string name="unknown_author">Unknown Author</string>
|
||||
|
||||
Reference in New Issue
Block a user