Check if ECBMode when activate SIM card
If in ECBMode, start ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS to show a dialog instead. This align with the deactivate sim case Bug: 393298086 Test: atest SubscriptionActivationRepositoryTest Test: adb shell cmd phone emergency-callback-mode Flag: EXEMPT bugfix Change-Id: Id40d087b7d2d3ca99504ec75bac1c5e29c67258d
This commit is contained in:
@@ -52,7 +52,7 @@ class SubscriptionActivationRepository(
|
||||
Log.i(TAG, "Unable to toggle subscription due to unusable subscription ID.")
|
||||
return
|
||||
}
|
||||
if (!active && isEmergencyCallbackMode(subId)) {
|
||||
if (isEmergencyCallbackMode(subId)) {
|
||||
val intent = Intent(ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS).apply {
|
||||
setPackage(Utils.PHONE_PACKAGE_NAME)
|
||||
}
|
||||
|
Reference in New Issue
Block a user