Fix the button style of RTT request dialog.
Change to use public android API of button style.
Also changed padding left and right to 16dp (up from default 8dp).
Bug: 70177426
Test: manual
PiperOrigin-RevId: 191505606
Change-Id: Ic984f95843775af3057fb15bf5fe54d3384c478d
diff --git a/java/com/android/incallui/res/layout/frag_rtt_request_dialog.xml b/java/com/android/incallui/res/layout/frag_rtt_request_dialog.xml
index c6d9e99..ab743eb 100644
--- a/java/com/android/incallui/res/layout/frag_rtt_request_dialog.xml
+++ b/java/com/android/incallui/res/layout/frag_rtt_request_dialog.xml
@@ -51,22 +51,28 @@
android:layout_weight="1"/>
<Button
android:id="@+id/rtt_button_decline_request"
- style="@style/Widget.MaterialComponents.Button.TextButton"
+ style="@style/Widget.AppCompat.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
android:backgroundTint="@android:color/white"
android:fontFamily="sans-serif-medium"
+ android:stateListAnimator="@null"
android:text="@string/rtt_button_decline_request"
android:textColor="#757575"/>
<Button
android:id="@+id/rtt_button_accept_request"
- style="@style/Widget.MaterialComponents.Button.TextButton"
+ style="@style/Widget.AppCompat.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
+ android:paddingStart="16dp"
+ android:paddingEnd="16dp"
android:backgroundTint="@color/dialer_theme_color"
android:fontFamily="sans-serif-medium"
+ android:stateListAnimator="@null"
android:text="@string/rtt_button_accept_request"
android:textColor="@android:color/white"/>
</LinearLayout>