commit | 72a25f16ee937670b58f969186f26980b83d3e68 | [log] [tgz] |
---|---|---|
author | ykhung <ykhung@google.com> | Tue Oct 12 16:32:18 2021 +0800 |
committer | YUKAI HUNG <ykhung@google.com> | Tue Oct 12 09:37:41 2021 +0000 |
tree | 2f6f4ba15a2d7c86a4634e62acb83809fb5e82fd | |
parent | 5a7966884b89bb387c26a3c62c42946aaefa0361 [diff] |
Add try-catch to avoid IllegalStateException in the data parsing if the BatteryStats service is crashed, we will provide the default instance for all modules in the battery settings, but it will encounter the IllegalStateException if we try to parse its history content (reference: ag/15926630) Bug: 201729939 Test: make SettingsRoboTests Change-Id: Ifebb48551e371e7c4e121969cb92cf95aa026812