Skip to content
Snippets Groups Projects
  • Jean Chalard's avatar
    90d300c7
    Clarify some code and fix a bug (A41) · 90d300c7
    Jean Chalard authored
    The test against hasMainDictionary is a test to know if we should
    auto-correct or not. Its result should be recorded in
    hasAutoCorrection, not in allowsToBeAutoCorrected.
    
    Actually, this value being inserted in allowsToBeAutoCorrected was
    causing a bug that nobody noticed: when typing in a language with
    no dictionary, the word in the middle of the suggestion strip would
    always be bold, as if it was going to auto-correct to itself !
    This change fixes this bug.
    
    Change-Id: Ia1f08efd7089b9c5cbede910c5b0951d83e698d2
    90d300c7
    History
    Clarify some code and fix a bug (A41)
    Jean Chalard authored
    The test against hasMainDictionary is a test to know if we should
    auto-correct or not. Its result should be recorded in
    hasAutoCorrection, not in allowsToBeAutoCorrected.
    
    Actually, this value being inserted in allowsToBeAutoCorrected was
    causing a bug that nobody noticed: when typing in a language with
    no dictionary, the word in the middle of the suggestion strip would
    always be bold, as if it was going to auto-correct to itself !
    This change fixes this bug.
    
    Change-Id: Ia1f08efd7089b9c5cbede910c5b0951d83e698d2