Let activities of Telephony opt out edge-to-edge
This is a temporary solution to prevent the layout issue while
enabling the feature flag of the edge-to-edge enforcement.
We still need to make activity handle insets properly later.
Fix: 332663986
Bug: 309578419
Flag: com.android.window.flags.enforce_edge_to_edge
Test: Open settings of Phone, and open each sub-settings. Make sure
there is no critical element obscured by the action bar.
Change-Id: I60b87e1615f312e0cb2af74c02bb23195bb67b49
diff --git a/res/values-night/styles.xml b/res/values-night/styles.xml
index f7d831b..9774396 100644
--- a/res/values-night/styles.xml
+++ b/res/values-night/styles.xml
@@ -25,6 +25,11 @@
<item name="android:navigationBarDividerColor">@color/dialer_divider_color</item>
<item name="android:colorAccent">@color/dialer_theme_color</item>
<item name="android:dialogTheme">@style/DialerAlertDialogTheme</item>
+
+ <!--
+ TODO(b/309578419): Make activities handle insets properly and then remove this.
+ -->
+ <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
<style name="EmergencyInfoNameTextAppearance"
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 19798f0..435e3a6 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -202,6 +202,11 @@
<item name="android:colorAccent">@color/dialer_theme_color</item>
<item name="android:dialogTheme">@style/DialerAlertDialogTheme</item>
<item name="android:homeAsUpIndicator">@drawable/ic_back_arrow</item>
+
+ <!--
+ TODO(b/309578419): Make activities handle insets properly and then remove this.
+ -->
+ <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
<style name="DialerAlertDialogTheme"