[glance] Don't send redundant visibility actions
Glance will explicitly set visibility on just about every view. This includes setting VISIBLE on views that are visibile by default. Doing so adds RemoteViews$ReflectionAction each time we call this, which can add up in complex Remote Views. This CL removes that default setting for Api 33+. It leaves it for older apis where visibility might be important due to how we use stubs. It also requires components to explicitly opt in or out of the optimization. The optimization is disabled in particular for descendents of list views due to the potential of bugs during recycling. Bug: b/504577705 Test: Run integration tests, screenshot tests Change-Id: Ieb83e0a938a1217e824a65eb8093d94abb72ed86
B
Brenton Bade committed
061027ed57192d1cc5e4be888bfee8d0806190e7
Parent: 3569326