Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ff90b707 authored by Arthi Ravishankar's avatar Arthi Ravishankar
Browse files

[CTS][WoM]Fix isHomeActivityVisibility check

Auto introduced a task based visibility check to handle multi display on their devices.
This change also introduced checking base intent flag and doing an '&' with FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS which is causing the tests to fail on watches.
Removing this check as the assumption that main activities don't have FLAG_ACTIVITY_EXCLUDE_FROM_RECENT" is not true on all products(Eg Wear)
Replacing the same with activityType check

Bug: b/285228291
Test: atest android.app.cts.ActivityManagerTest#testHomeVisibilityListener
Tested on Auto(gcar_x86_64-userdebug), wear(cf_gwear_x86-userdebug) and phone targets(aosp_cf_x86_64_phone-trunk_staging-userdebug) to ensure
that this solution works on all of these device types.

Change-Id: Ib98c2a49e2680822857f778daa268eb2857b6b14
parent 5455a0c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment