Autocorrect aggressiveness: default behaves as "Modest", although "Balanced (Default)" is labeled as default
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從預設門檻常數 Defaults.PREF_AUTO_CORRECT_THRESHOLD 開始,然後將它與 Settings.applyAutoCorrectAggressivenessPreset() 中的 Balanced 值進行比較。接著閱讀 Settings.readAutoCorrectAggressiveness(),了解全新安裝時門檻如何對應到等級,並檢查 SettingsValues 讀取的是否為相同的預設值。完成標準是:全新安裝在介面中顯示 Balanced 並使用 Balanced 門檻,同時使用者已儲存的等級仍維持原有行為。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
On a fresh install, Text correction → Autocorrect aggressiveness shows Modest, but the slider labels level 2 as "Balanced (Default)". The keyboard also really uses the modest threshold, so users get much weaker autocorrection than the settings suggest.
Cause
Defaults.PREF_AUTO_CORRECT_AGGRESSIVENESS = 2(Balanced), butDefaults.PREF_AUTO_CORRECT_THRESHOLD = 0.185f, which is the Modest value inSettings.applyAutoCorrectAggressivenessPreset()(Balanced =0.067f).- As long as no aggressiveness is saved,
Settings.readAutoCorrectAggressiveness()derives the level from the threshold:threshold >= 0.18f -> AUTO_CORRECT_LEVEL_MODEST. That's why the UI shows Modest. SettingsValuesreads the threshold with the 0.185 default, so autocorrection itself also runs at Modest.
Possible fix
Set Defaults.PREF_AUTO_CORRECT_THRESHOLD = 0.067f so it matches the Balanced preset (that's what we did). Users who saved a level themselves are not affected, since their threshold is stored.
To Reproduce
- Fresh install (or clear app data).
- Settings → Text correction → enable Autocorrect.
- Autocorrect aggressiveness shows "Modest", while level 2 is labeled "Balanced (Default)".
Expected behavior
The default level is Balanced, both in the UI and in the actual threshold.
App version & Flavor
Found in GlassType, my fork based on LeanType 4.3.0 (d634e26), standard flavor. The code is unchanged in current main (0e673e1).
Device Info
- Model: Samsung Galaxy S23 Ultra (SM-S918B) and Galaxy Z Fold 3 (SM-F926B)
- OS version: Android 17 / Android 15
- 主要語言
- Kotlin
- 星號
- 1k
- 分支
- 59
- 平均合併
- 14 小時 9 分鐘
- 30 天內合併 PR
- 56
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
LeanBitLab/LeanType 的其他 Issue
-
enhancement
難度 5/5 一週以上 新手友好度 35/100
LeanBitLab/LeanType#766 ·
維護者通常 1 天內回覆
-
[Bug] Silence timeout doesn't close interface and start transcription; causes silent loss of dictated speech.可能已有人在做 @LeanBitLab 今天認領。 未關閉bug
LeanBitLab/LeanType#765 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 45/100
LeanBitLab/LeanType#764 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 30/100
LeanBitLab/LeanType#757 · 7 則留言 ·
維護者通常 1 天內回覆
-
More suggestions based on version 1.0.1 of the CJK plugin可能已有人在做 @LeanBitLab 於 2 天前認領。 未關閉enhancement
難度 4/5 3-5 天 新手友好度 38/100
LeanBitLab/LeanType#754 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 LeanBitLab/LeanType 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
Kotlin-server-squad/vizcore#278 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
open-learning-exchange/myplanet#18484 ·
維護者通常 1 天內回覆
-
enhancement
難度 1/5 1 小時以內 新手友好度 90/100
Seb3thehacker/gearslip#71 ·
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 82/100
embabel/embabel-agent#2217 ·
維護者通常 2 天內回覆