Merge "integrate config_disable_all_cb_messages to settings" into sc-dev
This commit is contained in:
@@ -86,7 +86,11 @@ public class EmergencyBroadcastPreferenceController extends AbstractPreferenceCo
|
|||||||
private boolean isCellBroadcastAppLinkEnabled() {
|
private boolean isCellBroadcastAppLinkEnabled() {
|
||||||
// Enable link to CMAS app settings depending on the value in config.xml.
|
// Enable link to CMAS app settings depending on the value in config.xml.
|
||||||
boolean enabled = mContext.getResources().getBoolean(
|
boolean enabled = mContext.getResources().getBoolean(
|
||||||
com.android.internal.R.bool.config_cellBroadcastAppLinks);
|
com.android.internal.R.bool.config_cellBroadcastAppLinks) &&
|
||||||
|
// For data-only tablet devices which need to not forwarding any WEA-alert and hide from
|
||||||
|
// settings menu.
|
||||||
|
!mContext.getResources().getBoolean(
|
||||||
|
com.android.internal.R.bool.config_disable_all_cb_messages);
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
try {
|
try {
|
||||||
String packageName = CellBroadcastUtils
|
String packageName = CellBroadcastUtils
|
||||||
|
Reference in New Issue
Block a user