commit | e54a3031c97ce55c8b15410d7fb78442c451ecad | [log] [tgz] |
---|---|---|
author | Malcolm Chen <refuhoo@google.com> | Tue Dec 10 18:59:36 2019 -0800 |
committer | Xiangyu/Malcolm Chen <refuhoo@google.com> | Fri Dec 13 00:56:15 2019 +0000 |
tree | 9e3b71ad04dfbedc94326d7920a951e815e0caba | |
parent | 01e54d44b9f21005edb1d1673eedec86ced33735 [diff] |
Do not get CM instance in getActiveModemCount unless needed. TM#getActiveModemCount might be called before ConnectivityService is initialized. So do not try to get ConnectivityService instance unless it's needed (very rarely). Otherwise it will throw WTF exception. Bug: 144373595 Test: sanity Change-Id: I7a90ec45a0a3700a0c6852c505d68f438f26768c Merged-In: I7a90ec45a0a3700a0c6852c505d68f438f26768c