diff options
author | Brian Attwell <brianattwell@google.com> | 2015-05-21 15:01:09 -0700 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2015-05-21 15:01:09 -0700 |
commit | ec0e096b3165c09f74b5c7cfe391a52e41a42fec (patch) | |
tree | 824dc78046e98ffb8e7f0797bfbee1704b2a333d | |
parent | 356e93de45c8f1a1a3ade02bf303767aaacafc0b (diff) | |
download | packages_apps_Contacts-ec0e096b3165c09f74b5c7cfe391a52e41a42fec.tar.gz packages_apps_Contacts-ec0e096b3165c09f74b5c7cfe391a52e41a42fec.tar.bz2 packages_apps_Contacts-ec0e096b3165c09f74b5c7cfe391a52e41a42fec.zip |
Fix button colors in alert dialogs
Bug: 21198043
Bug: 19410482
Change-Id: I8c423b759d0fe05e83718ba2ed2536795603df6a
-rw-r--r-- | res/values/styles.xml | 1 | ||||
-rw-r--r-- | src/com/android/contacts/datepicker/DatePickerDialog.java | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml index 0cf4de495..8fce0f113 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -219,6 +219,7 @@ <item name="android:textColorPrimary">@color/primary_text_color</item> <item name="android:textColorSecondary">@color/secondary_text_color</item> <item name="android:listViewStyle">@style/ListViewStyle</item> + <item name="android:colorAccent">@color/primary_color</item> </style> <style name="SectionDivider"> diff --git a/src/com/android/contacts/datepicker/DatePickerDialog.java b/src/com/android/contacts/datepicker/DatePickerDialog.java index 2b470d5b6..1ae1e6130 100644 --- a/src/com/android/contacts/datepicker/DatePickerDialog.java +++ b/src/com/android/contacts/datepicker/DatePickerDialog.java @@ -105,7 +105,8 @@ public class DatePickerDialog extends AlertDialog implements OnClickListener, int monthOfYear, int dayOfMonth, boolean yearOptional) { - this(context, THEME_DEVICE_DEFAULT_LIGHT, callBack, year, monthOfYear, dayOfMonth, + // Don't pass a theme id. Instead use the default alert dialog theme. + this(context, /* themeId = */ -1, callBack, year, monthOfYear, dayOfMonth, yearOptional); } |