Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating text for middle suggestion settings #739

Merged
merged 5 commits into from
May 1, 2024

Conversation

Volterxien
Copy link
Contributor

Continuing PR #672

@Helium314
Copy link
Owner

Just for your information (@codokie unfortunately already knows how it is...): I don't have enough time recently, and instead of getting better it seems to be getting worse 😐
So it might easily take a few more days until I start looking at this PR.

// make sure typed word is shown, so user is able to override incoming autocorrection
// If there is an incoming autocorrection, make sure typed word is shown, so user is able to override it.
// Otherwise, if the relevant setting is enabled, show the typed word in the middle.
val typedIndex = if (hasAutoCorrection) 2 else 1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typedIndex is a confusing name, please be more explicit (e.g. indexOfTypedWord)

@@ -87,6 +87,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
public static final String PREF_AUTO_CORRECTION = "auto_correction";
public static final String PREF_MORE_AUTO_CORRECTION = "more_auto_correction";
public static final String PREF_AUTO_CORRECTION_CONFIDENCE = "auto_correction_confidence";
public static final String PREF_CENTER_SUGGESTION_TEXT_TO_COMMIT = "center_suggestion_text_to_commit";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you adapt the setting name for the changed wording?

@Helium314 Helium314 linked an issue May 1, 2024 that may be closed by this pull request
@Helium314 Helium314 merged commit e0c5da3 into Helium314:main May 1, 2024
@codokie
Copy link
Contributor

codokie commented May 1, 2024

Hey I noticed that it fails to compile:

e: file:///home/runner/work/HeliBoard/HeliBoard/app/src/main/java/helium314/keyboard/latin/Suggest.kt:121:66
Unresolved reference: mCenterSuggestionTextToCommit

> Task :app:compileDebugKotlin FAILED

FAILURE: Build failed with an exception.

Could you replace mCenterSuggestionTextToCommit with mCenterSuggestionTextToEnter in line 121 of Suggest.kt? Thanks

@Volterxien
Copy link
Contributor Author

Hey just fixed and pushed the change. Sorry about that. Is that going to need a new PR?

@Helium314
Copy link
Owner

I'll do the fix myself, don't worry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Always show word that will be typed as middle word in suggestions row
3 participants