Merge "Added a new broadcast receiver to handle Brzail channel 50 area info"

This commit is contained in:
Jack Yu
2015-12-21 19:47:42 +00:00
committed by Android (Google) Code Review

View File

@@ -117,9 +117,7 @@ public class SimStatus extends InstrumentedPreferenceActivity {
return; return;
} }
CellBroadcastMessage cbMessage = (CellBroadcastMessage) extras.get("message"); CellBroadcastMessage cbMessage = (CellBroadcastMessage) extras.get("message");
if (cbMessage != null if (cbMessage != null && cbMessage.getServiceCategory() == 50) {
&& cbMessage.getServiceCategory() == 50
&& mSir.getSubscriptionId() == cbMessage.getSubId()) {
String latestAreaInfo = cbMessage.getMessageBody(); String latestAreaInfo = cbMessage.getMessageBody();
updateAreaInfo(latestAreaInfo); updateAreaInfo(latestAreaInfo);
} }