Chromium Code Reviews
DescriptionFix: long-tapping a WebAPK in recents shows Chrome.
The icon shown in the recents is the application icon of the root activity in the task stack.
For WebApks, the root activity is WebApkActivity, which is a Chrome's activity. Therefore,
ChromeApplication's icon and title are shown instead.
To fix this, we need to make one of the WebAPK's activity be the root acitvity and lives in the
same task stack with WebApkActivity. Therefore, we have to remove
android:documentLaunchMode="InfoExisting" attribute from WebApkActivity, since this attribute
makes the WebApkActivity always be instanciated in a new task, not in the same task stack of
WebAPK's activity. Besides, we keep WebAPK's main activity unchanged, but we will launch another
activity, called ShellActivity on L+. The ShellActivity will remains in the recents.
We also increase the shell_version, which will result in updates of all existing installed
WebAPKs after WebAPK Server synced with the shell_apk changes.
To not break existing WebAPKs, we check the shell APK version in WebappLauncherActivity and
add proper flag when creating a launch Intent for WebAPKs.
This CL fix the bug on L+. New version of WebAPKs will be fixed directly, existing installed
WebAPKs which will be fixed after updating to the new version.
BUG=700157
Patch Set 1 : 1 #Patch Set 2 #
Total comments: 4
Patch Set 3 : dfalcantara@'s comments. #Patch Set 4 : Fix on K. #
Total comments: 4
Patch Set 5 : Fix on post L only. #Patch Set 6 : Update shell_apk version. #Patch Set 7 : Change back to CLEAR_TOP flag. #
Total comments: 10
Patch Set 8 : yfriedman@'s comments. #
Total comments: 3
Messages
Total messages: 31 (16 generated)
|