Skip to content
Snippets Groups Projects
  • Tadashi G. Takaoka's avatar
    987bff91
    Refactor logic to determine showing suggestions strip or not · 987bff91
    Tadashi G. Takaoka authored
    The logic to determine when the suggestions strip (a.k.a. the
    contextual strip) should be shown is already complex. In addition to
    that the voice input key get shown on the strip as well. There are a
    several factors to be considered and a few things to control.
    
    - The password input field shouldn't have the strip.
    - Show voice input key on the strip or not.
      - User preference settings "Show Voice Input Key".
      - A voice IME exists and is enabled.
      - The input field may have a private IME option to prevent the voice
        input key from being displayed.
    - Application can specify auto completions.
      - Full screen mode or not.
    - User preference settings "Show correction suggestions".
      - Always show, Show in portrait mode, Always hide.
    - The input field may have flags to prevent showing suggestions or
      auto corrections.
    - Suggestions is empty or not.
    - An important notice may be shown.
    
    Bug: 14981852
    Bug: 15436479
    Change-Id: I3050fd53ee6271fc64a8f17b6b12d9581d37b750
    987bff91
    History
    Refactor logic to determine showing suggestions strip or not
    Tadashi G. Takaoka authored
    The logic to determine when the suggestions strip (a.k.a. the
    contextual strip) should be shown is already complex. In addition to
    that the voice input key get shown on the strip as well. There are a
    several factors to be considered and a few things to control.
    
    - The password input field shouldn't have the strip.
    - Show voice input key on the strip or not.
      - User preference settings "Show Voice Input Key".
      - A voice IME exists and is enabled.
      - The input field may have a private IME option to prevent the voice
        input key from being displayed.
    - Application can specify auto completions.
      - Full screen mode or not.
    - User preference settings "Show correction suggestions".
      - Always show, Show in portrait mode, Always hide.
    - The input field may have flags to prevent showing suggestions or
      auto corrections.
    - Suggestions is empty or not.
    - An important notice may be shown.
    
    Bug: 14981852
    Bug: 15436479
    Change-Id: I3050fd53ee6271fc64a8f17b6b12d9581d37b750