summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Adam Bookatz <bookatz@google.com> 2024-12-19 11:01:35 -0800
committer Adam Bookatz <bookatz@google.com> 2024-12-19 12:10:09 -0800
commitf09692bf509f2318dbdc8a0fa21270408564fcaa (patch)
tree6f7548705b83bc649ada57c9e33da13ad256a340 /libs/androidfw/FileStream.cpp
parent441143d1aa13f54144f12fa9d42801179eeee8e3 (diff)
Only check phoneStatusBarIcon if profile
We currently request getUserStatusBarIconResId very frequently. We only need to do so if it is a profile, since all non-profiles have no status bar icon anyway, nor should they. Indeed, the method calling this is called updateProfileIcon(). Fixing this has two advantages: * We log a warning each time we ask for a non-profile's icon, so this will clear up logcat. * isProfile() gets automatically cached, whereas phoneStatusBarIcon doesn't, so this will be more efficient, since we'll bypass the call whenever it's not a profile. Test: atest SystemUITests:com.android.systemui.statusbar.phone.PhoneStatusBarPolicyTest Flag: EXEMPT bugfix Change-Id: Ic12606975a96f44c9ee62b1ec200255bd0e5620c
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions