commit | 0b1d5c1f1071582c4516026988795735d8fc4237 | [log] [tgz] |
---|---|---|
author | Zoey Chen <zoeychen@google.com> | Mon Feb 22 20:35:23 2021 +0800 |
committer | Zoey Chen <zoeychen@google.com> | Wed Mar 03 13:18:16 2021 +0800 |
tree | 6f362e481e9cbd6c53a1145f5fb9d9352acfbce1 | |
parent | af76755ff76e5e323ee31af593870dcde154b1d2 [diff] |
[PhoneStateListener] Redesign PhoneStateListener: Use TelephonyCallback To avoid the IDE does not have the warn if developers implement callback: 1. Revert PhoneStateListener to Android 11 version. 2. New TelephonyCallback 3. Deprecate the old PhoneStateListener.onXx() callbacks Bug: 167684594 Test: make and PhoneStateListenerTest and TelephonyCallbackTest Change-Id: I0fdd7fc3c3d67310197862c84d02f30164ec80d1