Merge "Settings: Fix force close for telephony callback exceeding limitation" into main
This commit is contained in:
@@ -245,7 +245,11 @@ public class MobileNetworkRepository extends SubscriptionManager.OnSubscriptions
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void createTelephonyManagerBySubId(int subId) {
|
private void createTelephonyManagerBySubId(int subId) {
|
||||||
if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
|
if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID
|
||||||
|
|| mTelephonyCallbackMap.containsKey(subId)) {
|
||||||
|
if (DEBUG) {
|
||||||
|
Log.d(TAG, "createTelephonyManagerBySubId: directly return for subId = " + subId);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PhoneCallStateTelephonyCallback
|
PhoneCallStateTelephonyCallback
|
||||||
|
Reference in New Issue
Block a user