Fix cell data preference in single sim case

Change-Id: Ic956d4a7a4935bcdbeaf868f978e23ba11919f9c
Fixes: 27653690
This commit is contained in:
Jason Monk
2016-03-31 09:55:25 -04:00
parent 5ffbf2e39d
commit b0bca3c3c1

View File

@@ -121,7 +121,7 @@ public class CellDataPreference extends CustomDialogPreference implements Templa
if (!Utils.showSimCardTile(getContext()) || if (!Utils.showSimCardTile(getContext()) ||
(nextSir != null && currentSir != null && (nextSir != null && currentSir != null &&
currentSir.getSubscriptionId() == nextSir.getSubscriptionId())) { currentSir.getSubscriptionId() == nextSir.getSubscriptionId())) {
setMobileDataEnabled(true); setMobileDataEnabled(false);
if (nextSir != null && currentSir != null && if (nextSir != null && currentSir != null &&
currentSir.getSubscriptionId() == nextSir.getSubscriptionId()) { currentSir.getSubscriptionId() == nextSir.getSubscriptionId()) {
disableDataForOtherSubscriptions(mSubId); disableDataForOtherSubscriptions(mSubId);