commit | 19c2bbccfd34af8cd305b7416f4a64632f461b8b | [log] [tgz] |
---|---|---|
author | Raff Tsai <rafftsai@google.com> | Wed Sep 04 15:08:57 2019 +0800 |
committer | Raff Tsai <rafftsai@google.com> | Wed Sep 04 15:17:27 2019 +0800 |
tree | 953364b3d1e975a3e865804ef096728b619aef99 | |
parent | 87617a9b164ed036a57f0c62154d5880ef781ea9 [diff] |
Fix Battery optimization takes long time isDefaultActiveApp is called on every package. We can cache default dialer and default sms package in a list, and check if the list contains target package name. Fixes: 140279638 Test: manual, make RunSettingsLibRoboTests Change-Id: I81f5ccb7aed1ebec797a21af6094971e05f456a7