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

Commit 60b33a3d authored by fionaxu's avatar fionaxu
Browse files

voicemail notification settings cleanup

- remove UI preference for voicemail notification ringtone & vibration
settings as they are not functioning with notification channel
introduced
- have a new Notification Preference under voicemailSettings which will
navigate to the system settings screen for that channel.
- modify telephonymanager API getVoiceMailRingToneUri and
isVoiceMailVibrationEnabled from sharedPreference to NotificationChannel
data.
- more cleanup work needed till next API bump for telephonyManager APIs
setVoicemailVibrationEnabled and setVoicemailRingToneUri

Bug: 37912316
Test: Manaul test
Change-Id: Ic28713c012672b991b8f131545c06e1dbfd6765f
parent 3fda16e6
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -84,6 +84,11 @@ public class NotificationChannelController {
        createAll(context);
        createAll(context);
    }
    }


    public static NotificationChannel getChannel(String channelId, Context context) {
        return context.getSystemService(NotificationManager.class)
                .getNotificationChannel(channelId);
    }

    // rename all registered channels on locale change
    // rename all registered channels on locale change
    private BroadcastReceiver mLocaleChangeReceiver = new BroadcastReceiver() {
    private BroadcastReceiver mLocaleChangeReceiver = new BroadcastReceiver() {
        @Override
        @Override