| commit | cd5c529e18800d0f0b660195d59fe045f4937a0e | [log] [tgz] |
|---|---|---|
| author | Andrey Yepin <ayepin@google.com> | Mon Aug 04 17:42:56 2025 -0700 |
| committer | Andrey Yepin <ayepin@google.com> | Mon Aug 04 17:42:56 2025 -0700 |
| tree | a8c35f7fbf4850b0d8ea1479192479143c3e0813 | |
| parent | c3b81678f39cff0098b1efba131a2257a3e331c9 [diff] |
Cache Activity#isTaskRoot result. Activity#isTaskRoot performs a binder call under the hood and was invoked on (almost) every layout change (through calculateDrawerOffset call). To avoid unncessary blocking binder calls, read (and cache) the value once in onCreate. Bug: 404593897 Test: instrument the code and collect traces. Flag: android.service.chooser.interactive_chooser Change-Id: Ie1952218a291e2d75d7744f90148f441231b6cfa
IntentResolver provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder