Consider the last inserted SIM for EmergencyAffordance
If India Sim is inserted and removed in Airplane mode and reboot, The device is supposed to consider the previous status based on the last inserted SIM as there wont be any cell info update in Airplane mode. Rootcause is when there are no active subscription list right from the bootup, EmergencyAffordance global variable is not updated with the settings based on previous boot. Fix is to update the EmergencyAffordance even when there are no active subscriptions available from bootup. Bug: 36978415 Change-Id: I072cb635eb57c63dd94bf8f0a0b6222e22fdfbb7
This commit is contained in:
committed by
Chaitanya Saggurthi
parent
7a12f7efc7
commit
290563a33b
@@ -219,6 +219,7 @@ public class EmergencyAffordanceService extends SystemService {
|
||||
List<SubscriptionInfo> activeSubscriptionInfoList =
|
||||
mSubscriptionManager.getActiveSubscriptionInfoList();
|
||||
if (activeSubscriptionInfoList == null) {
|
||||
setSimNeedsEmergencyAffordance(neededNow);
|
||||
return neededNow;
|
||||
}
|
||||
for (SubscriptionInfo info : activeSubscriptionInfoList) {
|
||||
|
||||
Reference in New Issue
Block a user