Fixes tickmarks on dropdowns
This commit is contained in:
+8
@@ -222,6 +222,7 @@ private fun TranslationMessage(
|
||||
) {
|
||||
DropdownMenuItem(
|
||||
text = {
|
||||
Row {
|
||||
if (source in accountViewModel.account.dontTranslateFrom) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.Check,
|
||||
@@ -240,6 +241,7 @@ private fun TranslationMessage(
|
||||
Locale(source).displayName,
|
||||
),
|
||||
)
|
||||
}
|
||||
},
|
||||
onClick = {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
@@ -251,6 +253,7 @@ private fun TranslationMessage(
|
||||
HorizontalDivider(thickness = DividerThickness)
|
||||
DropdownMenuItem(
|
||||
text = {
|
||||
Row {
|
||||
if (accountViewModel.account.preferenceBetween(source, target) == source) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.Check,
|
||||
@@ -269,6 +272,7 @@ private fun TranslationMessage(
|
||||
Locale(source).displayName,
|
||||
),
|
||||
)
|
||||
}
|
||||
},
|
||||
onClick = {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
@@ -279,6 +283,7 @@ private fun TranslationMessage(
|
||||
)
|
||||
DropdownMenuItem(
|
||||
text = {
|
||||
Row {
|
||||
if (accountViewModel.account.preferenceBetween(source, target) == target) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.Check,
|
||||
@@ -297,6 +302,7 @@ private fun TranslationMessage(
|
||||
Locale(target).displayName,
|
||||
),
|
||||
)
|
||||
}
|
||||
},
|
||||
onClick = {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
@@ -312,6 +318,7 @@ private fun TranslationMessage(
|
||||
languageList.get(i)?.let { lang ->
|
||||
DropdownMenuItem(
|
||||
text = {
|
||||
Row {
|
||||
if (lang.language in accountViewModel.account.translateTo) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.Check,
|
||||
@@ -330,6 +337,7 @@ private fun TranslationMessage(
|
||||
lang.displayName,
|
||||
),
|
||||
)
|
||||
}
|
||||
},
|
||||
onClick = {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
|
||||
Reference in New Issue
Block a user