• Dmitry Skiba's avatar
    Fix UI glitches during FRE transition on tablets. · 9c6253e4
    Dmitry Skiba authored
    On tablets where first run experience activity shows in a dialog, there
    is a UI glitch (flash of white) when ChromeTabbedActivity (or any similar
    fillscreen activity) transitions to FRE.
    
    CTA transitions to FRE in onCreate(), aborting CTA launch and canceling
    currently running window animation midway. By the time onCreate() is
    called, the CTA window is already partially visible, so its removal is
    perceived as a flash.
    
    This CL introduces TabbedModeFRE activity, which has the same background
    as CTA, but renders its content in a FRE-like dialog on tablets. Because
    the background is the same, transition from CTA window looks smooth, and
    since content is laid out as a dialog, the end experience looks like FRE
    dialog appearing on top of starting CTA activity.
    
    
    Bug: 771545
    Change-Id: I4709a83de147e04ce94ba319cfa820a2ec6dea17
    Reviewed-on: https://chromium-review.googlesource.com/723725
    Commit-Queue: Dmitry Skiba <dskiba@chromium.org>
    Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#512893}
    9c6253e4
window_background.xml 588 Bytes