diff options
author | Sridhar Dubbaka <sdubbaka@codeaurora.org> | 2015-10-19 01:56:10 +0530 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-07-01 05:03:15 -0700 |
commit | 7975c8e51e3647c053fd7451e67e1a7b177984fd (patch) | |
tree | ab8a1725fc82882b3d87561d4d3f5546d27a7a98 | |
parent | 6b63386dad80cc03c4d8a674d66840b8c4468d6b (diff) | |
download | packages_apps_Settings-7975c8e51e3647c053fd7451e67e1a7b177984fd.zip packages_apps_Settings-7975c8e51e3647c053fd7451e67e1a7b177984fd.tar.gz packages_apps_Settings-7975c8e51e3647c053fd7451e67e1a7b177984fd.tar.bz2 |
Update OperatorInfo in Simstatus settings for correct subid
Update OperatorInfo in Simstatus settings for
correct subid, on which Channel 50 CB message is received.
Change-Id: I0876c94d53f2b4eef8571037c9a0e7d880bc043f
CRs-Fixed: 906537
-rw-r--r-- | src/com/android/settings/deviceinfo/SimStatus.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/settings/deviceinfo/SimStatus.java b/src/com/android/settings/deviceinfo/SimStatus.java index 036d00f..7410cd3 100644 --- a/src/com/android/settings/deviceinfo/SimStatus.java +++ b/src/com/android/settings/deviceinfo/SimStatus.java @@ -44,6 +44,7 @@ import android.widget.ListView; import com.android.internal.logging.MetricsLogger; import com.android.internal.telephony.DefaultPhoneNotifier; import com.android.internal.telephony.Phone; +import com.android.internal.telephony.PhoneConstants; import com.android.internal.telephony.PhoneFactory; import com.android.settings.InstrumentedPreferenceActivity; import com.android.settings.R; @@ -170,6 +171,8 @@ public class SimStatus extends InstrumentedPreferenceActivity { CB_AREA_INFO_SENDER_PERMISSION, null); // Ask CellBroadcastReceiver to broadcast the latest area info received Intent getLatestIntent = new Intent(GET_LATEST_CB_AREA_INFO_ACTION); + getLatestIntent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, + mSir.getSubscriptionId()); sendBroadcastAsUser(getLatestIntent, UserHandle.ALL, CB_AREA_INFO_SENDER_PERMISSION); } @@ -373,6 +376,12 @@ public class SimStatus extends InstrumentedPreferenceActivity { } mPhone = phone; + updateAreaInfo(""); + Intent getLatestIntent = new Intent(GET_LATEST_CB_AREA_INFO_ACTION); + getLatestIntent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, + mSir.getSubscriptionId()); + sendBroadcastAsUser(getLatestIntent, UserHandle.ALL, + CB_AREA_INFO_SENDER_PERMISSION); mPhoneStateListener = new PhoneStateListener(mSir.getSubscriptionId()) { @Override public void onDataConnectionStateChanged(int state) { |