Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed23483c authored by Chen Xu's avatar Chen Xu Committed by Android (Google) Code Review
Browse files

Merge "integrate config_disable_all_cb_messages to settings" into sc-dev

parents c102420a 34eae091
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -86,7 +86,11 @@ public class EmergencyBroadcastPreferenceController extends AbstractPreferenceCo
    private boolean isCellBroadcastAppLinkEnabled() {
        // Enable link to CMAS app settings depending on the value in config.xml.
        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) {
            try {
                String packageName = CellBroadcastUtils