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:
Helium314 2023-11-20 13:46:55 +01:00
parent 5a15e4f8f2
commit 24d771f89a

View file

@ -126,9 +126,9 @@ public final class InputAttributes {
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
mNoLearning = flagNoSuggestions;
mNoLearning = false;
}
public boolean isTypeNull() {