Dialer: Apply proper dialog styling to dialog_call_subject
* We already have a dialog background with proper rounding, use that
instead
* Use the inset from the original background as margin
Change-Id: I773a228f576591b60c8f1044830eee317d2a24bb
diff --git a/java/com/android/dialer/contacts/resources/res/drawable/dialog_background_material.xml b/java/com/android/dialer/contacts/resources/res/drawable/dialog_background_material.xml
deleted file mode 100644
index c93d43e..0000000
--- a/java/com/android/dialer/contacts/resources/res/drawable/dialog_background_material.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2015 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<inset xmlns:android="http://schemas.android.com/apk/res/android"
- android:inset="16dp">
- <shape android:shape="rectangle">
- <corners android:radius="2dp"/>
- <solid android:color="?android:attr/colorBackground"/>
- </shape>
-</inset>
diff --git a/java/com/android/dialer/contacts/resources/res/layout/dialog_call_subject.xml b/java/com/android/dialer/contacts/resources/res/layout/dialog_call_subject.xml
index d0df702..902fdc1 100644
--- a/java/com/android/dialer/contacts/resources/res/layout/dialog_call_subject.xml
+++ b/java/com/android/dialer/contacts/resources/res/layout/dialog_call_subject.xml
@@ -36,7 +36,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
- android:background="@drawable/dialog_background_material"
+ android:background="@drawable/dialog_background"
+ android:layout_margin="16dp"
android:clickable="true"
android:elevation="16dp"
android:orientation="vertical"