Bug #116678
测试 Test-IT #111062: V3.0功能测试
测试 Test-IT #111069: AF-V3.0--Launcher/SystemUI-小窗模式入口
【AF】【EVT】【小窗模式】长按应用宝图标,点击小窗按钮,应用宝并未以小窗模式展示
Status: | CLOSED | Start date: | 2023-03-02 | |
---|---|---|---|---|
Priority: | Normal | Due date: | 2023-04-07 | |
Assignee: | CD TEST-方永红 | % Done: | 100% | |
Category: | 窗口定制 | |||
Target version: | - | |||
Need_Info: | -- | Found Version: | FlatBuild_HH_MCE_FSE.M.R.user.01.00.0079.C101 | |
Resolution: | FIXED | Degrated: | -- | |
Severity: | Normal | Verified Version: | FlatBuild_HH_MCE_FSE.M.R.user.01.00.0090.C103(X103) | |
Reproducibility: | Every time | Fixed Version: | ||
Test Type: | ST | Root cause: | 默认小窗启动功能已经实现 |
Description
【前提条件】
1、设备正常启动
【测试步骤】)
1、长按应用宝图标
2、点击小窗按钮
【预期结果】
2、应用宝以小窗模式显示
【实际结果】
2、应用宝并未以小窗模式展示
【复现率】
3/3
History
#1 Updated by CD FW-鲁凯峰 over 2 years ago
■ Current conclusion
还在分析中
问题的原因是:
从Launcher上启动上应用宝,它会依次启动3个activity
- 02-27 10:20:48.003 1122 3206 I ActivityTaskManager: START u0 {flg=0x10008000 cmp=com.tencent.android.qqdownloader/com.tencent.pangu.link.SplashActivity} from uid 10076
- 02-27 10:20:48.064 1122 2521 I ActivityTaskManager: START u0 {flg=0x10000000 cmp=com.tencent.android.qqdownloader/com.tencent.assistant.activity.SplashImplActivity} from uid 10100
- 02-27 10:20:48.270 1122 2641 I ActivityTaskManager: START u0 {flg=0x4000000 cmp=com.tencent.android.qqdownloader/com.tencent.assistantv2.activity.MainActivity (has extras)} from uid 10100
它会先启动 com.tencent.android.qqdownloader/com.tencent.pangu.link.SplashActivity,这个是以freeform模式启动的,但是紧接着
SplashActivity自己在启动com.tencent.assistant.activity.SplashImplActivity时,设置了FLAG_ACTIVITY_NEW_TASK, 并且SplashActivity自己设置了android:taskAffinity属性
- <activity android:launchMode="singleTop" android:name="com.tencent.pangu.link.SplashActivity" android:process="@string/ahu" android:screenOrientation="portrait" android:taskAffinity="com.tencent.pangu.link.SplashActivity" android:theme="@style/bb">
导致SplashImplActivity和SplashActivity处于不同的task内, 在启动SplashImplActivity会重新创建一个task,而在启动时又没有设置windowmode为freeform,所以SplashImplActivity就是全屏显示的,在SplashImplActivity中启动MainActivity也会沿用SplashImplActivity的设置,也是全屏显示的
■ Next Action
准备将应用宝设置为不支持小窗模式启动, 参考华为的应用宝,也不支持小窗模式启动
#2 Updated by CD FW-鲁凯峰 over 2 years ago
■ Current conclusion
需求正在变更中,有一批应用将会被强制小窗显示,包括应用包,目前正在处理中
■ My analysis
■ Next Action
等强制小窗显示的应用确认后,改问题就会解决
#3 Updated by CD FW-鲁凯峰 over 2 years ago
- Due date set to 2023-04-07
#4 Updated by CD FW-鲁凯峰 over 2 years ago
跟#116482一起解决,目前小窗白名单已经添加,还在处理小窗和Recent的逻辑
#5 Updated by CD FW-鲁凯峰 over 2 years ago
#6 Updated by CD FW-鲁凯峰 about 2 years ago
- Status changed from New to RESOLVED
- Assignee changed from CD FW-鲁凯峰 to CD TEST-方永红
- Resolution changed from -- to FIXED
- Root cause set to 默认小窗启动功能已经实现
■ Current conclusion
问题已解决
■ My analysis
默认小窗启动功能已经实现
■ Submit URL
https://dev.thundercomm.com/gerrit/c/general/platform/frameworks/base/+/192776
https://dev.thundercomm.com/gerrit/c/general/platform/packages/apps/Launcher3/+/190686
#7 Updated by CD TEST-方永红 about 2 years ago
- Status changed from RESOLVED to VERIFIED
- Verified Version set to FlatBuild_HH_MCE_FSE.M.R.user.01.00.0090.C103(X103)
4.12
确认应用宝强制小窗启动功能已合入
#8 Updated by CD TEST-方永红 about 2 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 0 to 100