• Peter Kotwicz's avatar
    [Android WebAPK] Relaunch WebAPK when the user finishes first run experience · b9faabca
    Peter Kotwicz authored
    new-style WebAPKs have a different activity architecture than old-style
    WebAPKs. new-style WebAPKs stack TransparentSplashWebApkActivity (which
    runs in Chrome) on top of the SplashActivity (which runs in the WebAPK).
    The SplashActivity keeps running till TransparentSplashWebApkActivity
    finishes itself.
    
    In order for tapping the app icon of an already running new-style
    WebAPK to activate the already-running WebAPK instead of relaunching
    the WebAPK, SplashActivity must be running.
    
    This CL:
    - Changes the first run experience to send an intent to relaunch the
    WebAPK when the user completes the FRE. Previously,
    TransparentSplashWebApkActivity was launched when the user completes
    the FRE.
    - Changes TransparentSplashWebApkActivity not to be singleTop. If
    TransparentSplashWebApkActivity is singleTop,
    FirstRunFlowSequencer#launch() triggers
    TransparentSplashWebApkActivity#onNewIntent() when it relaunches the
    activity with FLAG_ACTIVITY_NEW_TASK
    
    BUG=911420
    
    Change-Id: I1a0d648502e525ec133cfb2ef35c9fb2b5afca53
    Reviewed-on: https://chromium-review.googlesource.com/c/1367187
    Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
    Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
    Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#616119}
    b9faabca
AndroidManifest.xml 61.6 KB