diff options
-rw-r--r-- | res/values/config.xml | 2 | ||||
-rw-r--r-- | src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/res/values/config.xml b/res/values/config.xml index 6325095c..80bb7f05 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -23,4 +23,6 @@ <bool name="show_brazil_settings">false</bool> <!-- Whether to use the sound duration settings for CMAS --> <bool name="use_sound_duration">false</bool> + <!-- Whether to enable broadcast channels for Colombia --> + <bool name="enable_colombia_channels">false</bool> </resources> diff --git a/src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java b/src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java index 88e5c743..ca31b7aa 100644 --- a/src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java +++ b/src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java @@ -356,6 +356,13 @@ public class CellBroadcastConfigService extends IntentService { SmsManager.CELL_BROADCAST_RAN_TYPE_GSM); } + if(this.getResources().getBoolean(R.bool.enable_colombia_channels) == true) { + if (DBG) log("enabling channels 437, 919, 921"); + manager.enableCellBroadcast(437, SmsManager.CELL_BROADCAST_RAN_TYPE_GSM); + manager.enableCellBroadcast(919, SmsManager.CELL_BROADCAST_RAN_TYPE_GSM); + manager.enableCellBroadcast(921, SmsManager.CELL_BROADCAST_RAN_TYPE_GSM); + } + // Disable per user preference/checkbox. // This takes care of the case where enableEmergencyAlerts is true, // but check box is unchecked to receive such as cmas severe alerts. |