commit | 5e7940609d26ba43de22527bb76c6222eeb10b62 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Fri Aug 06 13:09:49 2021 +0200 |
committer | Corina Grigoras <corinac@google.com> | Thu Aug 12 08:56:10 2021 +0000 |
tree | f7288aada737d2b9c3235528a005a1a58d017632 | |
parent | 0d933eedb6db4df87f02431902d5264f7aba63e9 [diff] |
Cache results of isWorkProfile(). This call can be slow. Once we've determined a user has a profile owner app, that state won't change for the life time of a user, so it makes sense to cache the value instead. Bug: 192041648 Test: atest MediaProviderTests Change-Id: I3041618959c0b4ea5dfb7546cfac13cf59931074 (cherry picked from commit f33c24187b4771feddda862cb3ba8217188015e9)