summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yasin Kilicdere <tyk@google.com> 2022-12-05 16:26:43 +0000
committer Yasin Kilicdere <tyk@google.com> 2022-12-05 16:26:43 +0000
commitc34796508035266fd5991490bb3a2301be6d0b5f (patch)
tree0b739a5ab9ff65b32930bb0a6c749ad9ae86b99b /libs/androidfw/StringPool.cpp
parent189b67e821a2844328446ebcdc9c553c170a63ae (diff)
Use TelecomManager.isInCall instead of TelephonyManager.getCallState
UserManager.canSwitchUsers and UserManager.getUserSwitchability were using the deprecated method TelephonyManager.getCallState and comparing the result with TelephonyManager.CALL_STATE_IDLE to findout whether there is an ongoing telephone call. This CL changes those methods to use a helper method, which calls TelecomManager.isInCall instead of the deprecated one. Also UserInteractor.canSwitchUsers was sometimes failing with a SecurityException during a user switch and crashing the systemui process, causing it to restart after the user switch. This change also saves the user switch flow from the underlying problem. Bug: 257538981 Test: atest UserManagerTest Change-Id: I378527db7decc170d385f0f1d89235b6f02649e6
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions