• Andre Le's avatar
    Notification: Only start hot mode when needed. · 62591398
    Andre Le authored
    In Nearby Share, we encounter a problem of an image notification not
    showing entirely. This happens because of this use case:
    - The popup notification A is showing and we hover over that
    notification.
    - Notification A is then removed automatically to show notification B
    with image.
    - Notification B with image is cut off because we accidentally enter hot
    mode.
    
    This CL added a check so that we only start hot mode when necessary
    (when a notification is closed by an actual user).
    
    Fixed: 1154741
    Change-Id: I306e66e92d2e28ba11cb1526089789ad1eb9331b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2591267
    Commit-Queue: Andre Le <leandre@chromium.org>
    Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#843219}
    62591398
message_popup_collection.h 12 KB