mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-29 11:08:07 +00:00
disable learning only if explicitly requested by the input field
related to #266, but can't be a fix for always incognito
This commit is contained in:
parent
5a15e4f8f2
commit
24d771f89a
1 changed files with 2 additions and 2 deletions
|
@ -126,9 +126,9 @@ public final class InputAttributes {
|
||||||
|
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
||||||
mNoLearning = flagNoSuggestions || (editorInfo.imeOptions & EditorInfo.IME_FLAG_NO_PERSONALIZED_LEARNING) != 0;
|
mNoLearning = (editorInfo.imeOptions & EditorInfo.IME_FLAG_NO_PERSONALIZED_LEARNING) != 0;
|
||||||
else
|
else
|
||||||
mNoLearning = flagNoSuggestions;
|
mNoLearning = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isTypeNull() {
|
public boolean isTypeNull() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue