Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
b0ba33ba
Commit
b0ba33ba
authored
1 year ago
by
Aleksandras Kostarevas
Browse files
Options
Downloads
Patches
Plain Diff
Update settings menu
parent
192c7fcc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Merge model-metadata to master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/org/futo/inputmethod/latin/uix/settings/pages/PredictiveText.kt
+21
-14
21 additions, 14 deletions
...to/inputmethod/latin/uix/settings/pages/PredictiveText.kt
with
21 additions
and
14 deletions
java/src/org/futo/inputmethod/latin/uix/settings/pages/PredictiveText.kt
+
21
−
14
View file @
b0ba33ba
...
...
@@ -25,14 +25,31 @@ fun PredictiveTextScreen(navController: NavHostController = rememberNavControlle
ScrollableList
{
ScreenTitle
(
"Predictive Text"
,
showBack
=
true
,
navController
)
SettingToggleSharedPrefs
(
title
=
"Transformer LM"
,
key
=
Settings
.
PREF_KEY_USE_TRANSFORMER_LM
,
default
=
true
)
Tip
(
"Note: Transformer LM is in alpha state. Many of the below options currently have no effect if Transformer LM is enabled."
)
Tip
(
"Note: Transformer LM is in alpha state"
)
// TODO: It doesn't make a lot of sense in the case of having autocorrect on but show_suggestions off
SettingToggleSharedPrefs
(
title
=
stringResource
(
R
.
string
.
auto_correction
),
subtitle
=
stringResource
(
R
.
string
.
auto_correction_summary
),
key
=
Settings
.
PREF_AUTO_CORRECTION
,
default
=
true
)
SettingToggleSharedPrefs
(
title
=
stringResource
(
R
.
string
.
prefs_show_suggestions
),
subtitle
=
stringResource
(
R
.
string
.
prefs_show_suggestions_summary
),
key
=
Settings
.
PREF_SHOW_SUGGESTIONS
,
default
=
true
)
Tip
(
"Many of the below options currently have no effect if Transformer LM is enabled"
)
NavigationItem
(
title
=
stringResource
(
R
.
string
.
edit_personal_dictionary
),
...
...
@@ -62,24 +79,14 @@ fun PredictiveTextScreen(navController: NavHostController = rememberNavControlle
key
=
Settings
.
PREF_BLOCK_POTENTIALLY_OFFENSIVE
,
default
=
booleanResource
(
R
.
bool
.
config_block_potentially_offensive
)
)
SettingToggleSharedPrefs
(
title
=
stringResource
(
R
.
string
.
auto_correction
),
subtitle
=
stringResource
(
R
.
string
.
auto_correction_summary
),
key
=
Settings
.
PREF_AUTO_CORRECTION
,
default
=
true
)
SettingToggleSharedPrefs
(
title
=
stringResource
(
R
.
string
.
prefs_show_suggestions
),
subtitle
=
stringResource
(
R
.
string
.
prefs_show_suggestions_summary
),
key
=
Settings
.
PREF_SHOW_SUGGESTIONS
,
default
=
true
)
SettingToggleSharedPrefs
(
title
=
stringResource
(
R
.
string
.
use_personalized_dicts
),
subtitle
=
stringResource
(
R
.
string
.
use_personalized_dicts_summary
),
key
=
Settings
.
PREF_KEY_USE_PERSONALIZED_DICTS
,
default
=
true
)
SettingToggleSharedPrefs
(
title
=
stringResource
(
R
.
string
.
bigram_prediction
),
subtitle
=
stringResource
(
R
.
string
.
bigram_prediction_summary
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment