Ensure the VoicemailSettingsActivity supports edge to edge.

The PreferenceActivity itself needs to be configured to support edge to
edge properly.

Also, it turns out this preference activity is unique in that it nests
PreferenceScreens.  As a result the "voicemail number" which is nested
in the "Setup" PreferenceScreen would get cut off.

Flag: NONE bug fix.
Fixes: 394283757
Fixes: 398759149
Test: Manual test of the telephony voicemail screen to demonstrate that
edge to edge does not break the layout.

Change-Id: I4410d184700b9fff5cd54d3e716c127a4f762596

diff --git a/src/com/android/phone/settings/VoicemailSettingsActivity.java b/src/com/android/phone/settings/VoicemailSettingsActivity.java
index 909a3ad..baae26b 100644
--- a/src/com/android/phone/settings/VoicemailSettingsActivity.java
+++ b/src/com/android/phone/settings/VoicemailSettingsActivity.java
@@ -264,6 +264,8 @@
                 NotificationChannelController.CHANNEL_ID_VOICE_MAIL);
         intent.putExtra(Settings.EXTRA_APP_PACKAGE, mPhone.getContext().getPackageName());
         mVoicemailNotificationPreference.setIntent(intent);
+
+        SettingsConstants.setupEdgeToEdge(this);
     }
 
     @Override
@@ -289,6 +291,10 @@
         mPreviousVMProviderKey = mVoicemailProviders.getValue();
 
         mVoicemailSettings = (PreferenceScreen) findPreference(BUTTON_VOICEMAIL_SETTING_KEY);
+        // 😮‍💨 the legacy PreferenceScreen displays a dialog in its onClick.  Set a property on the
+        // PreferenceScreen to ensure that it will fit system windows to accommodate for edge to
+        // edge.
+        mVoicemailSettings.setDialogFitsSystemWindows(true);
 
         maybeHidePublicSettings();