From d1e54b9d3d75fd1bd8011b3c628a9c2a7d9793f0 Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Thu, 2 Nov 2023 23:05:21 +0200 Subject: [PATCH] Show user's uncorrected word as the third option --- java/src/org/futo/inputmethod/latin/uix/ActionBar.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java/src/org/futo/inputmethod/latin/uix/ActionBar.kt b/java/src/org/futo/inputmethod/latin/uix/ActionBar.kt index 7d576797e..e14e5ded8 100644 --- a/java/src/org/futo/inputmethod/latin/uix/ActionBar.kt +++ b/java/src/org/futo/inputmethod/latin/uix/ActionBar.kt @@ -263,7 +263,11 @@ fun RowScope.SuggestionItems(words: SuggestedWords, onClick: (i: Int) -> Unit) { for (i in 0 until maxSuggestions) { - val remapped = ORDER_OF_SUGGESTIONS[i] + val remapped = if(offset == 1 && i == 2) { + 0 - offset + } else { + ORDER_OF_SUGGESTIONS[i] + } SuggestionItem( words,