commit | f33c24187b4771feddda862cb3ba8217188015e9 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Fri Aug 06 13:09:49 2021 +0200 |
committer | Martijn Coenen <maco@google.com> | Mon Aug 09 15:15:49 2021 +0200 |
tree | 037e210a869c4b16f2196009859a50444144e8b5 | |
parent | 98a66d8198e8391e7ebeafddf0ac709114363e40 [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