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

Commit c115c6ea authored by Sanket Padawe's avatar Sanket Padawe Committed by android-build-merger
Browse files

Merge "Disable voice call barring notification for VZN." am: 6f7c1e16

am: 11d16087

Change-Id: I52944784ef1c56f0785bb5b2cbab5a4ff4f9f9d0
parents 350d36d0 11d16087
Loading
Loading
Loading
Loading
+15 −0
Original line number Original line Diff line number Diff line
@@ -3784,6 +3784,21 @@ public class ServiceStateTracker extends Handler {


        Context context = mPhone.getContext();
        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 details = "";
        CharSequence title = "";
        CharSequence title = "";