commit | 8958d5d0bc9275d9d201a109a7ee95153dac54be | [log] [tgz] |
---|---|---|
author | Varun Shah <varunshah@google.com> | Wed Nov 20 17:08:16 2019 -0800 |
committer | Varun Shah <varunshah@google.com> | Fri Nov 22 16:14:24 2019 -0800 |
tree | d09bd0213270f496f6e06bdb2088444c0e184d47 | |
parent | fd74d7645a389978b598bda2c3242b09bed00b6f [diff] |
Remove UserUsageStatsService#userUnlocked. UsageStatsDatabase#init was being called twice every time - once when the usage stats service was initialized and once when the user was unlocked. However, this was unnecessary and doing duplicate work since on user unlock, when the service is initialized, the database is also initialized. Bug: n/a Test: atest UsageStatsTest Change-Id: Ic74ba3ff8a0b68c97340ffe25b19065e1a046731