• Shakti Sahu's avatar
    Query Tiles: UI fixes · a9bdbe5c
    Shakti Sahu authored
    This CL fixes
    1 - If we get redundant calls to the TileSuggestionProcessor, ignore them
    and don't update the underlying widget. This will prevent the previous
    suggestion from flashing up momementarily before new tile set is loaded.
    2 - Default ItemAnimator is removed to prevent the jank
    3 - Only reload the tile if NTP is reloaded via home button. For regular
    page load, don't animate query tiles (fixes submit query flow jank)
    4 - Fix for international languages - ASCII comparison is not enough
    for non-english languages. string16 is used for comparison purposes,
    which fixes the omnibox flow for query tiles (Bug 1086672)
    
    Bug : 1086672, 1081557
    
    Change-Id: I8536759fb3f7a9c9c00ddb56f5c12f40df26a114
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2211661
    Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
    Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
    Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#772080}
    a9bdbe5c
query_tile_provider.cc 6.24 KB