[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
Loading
Please register or sign in to comment