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

Commit b58e3152 authored by Sanket Padawe's avatar Sanket Padawe
Browse files

Disable voice call barring notification for VZN.

Test: Manual
Bug: 31490566
Change-Id: I729a7da49d5379d0559653a1d702881979bc6711
Merged-in: I729a7da49d5379d0559653a1d702881979bc6711
parent fdd42a76
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -3760,6 +3760,21 @@ public class ServiceStateTracker extends Handler {

        Context context = mPhone.getContext();

        CarrierConfigManager configManager = (CarrierConfigManager)
                context.getSystemService(Context.CARRIER_CONFIG_SERVICE);
        if (configManager != null) {
            PersistableBundle bundle = configManager.getConfig();
            if (bundle != null) {
                boolean disableVoiceBarringNotification = bundle.getBoolean(
                        CarrierConfigManager.KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false);
                if(disableVoiceBarringNotification && (notifyType == CS_ENABLED
                        || notifyType == CS_NORMAL_ENABLED
                        || notifyType == CS_EMERGENCY_ENABLED)) {
                    if (DBG) log("Voice/emergency call barred notification disabled");
                    return;
                }
            }
        }

        CharSequence details = "";
        CharSequence title = "";