summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2016-03-17 08:23:58 +0100
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-03-21 03:46:48 -0700
commitfae80bfc230e05ca01019a214e45da552b2dd989 (patch)
treefb50f256bac19daad0637cb1b69615f09f224710
parentf35d67066fa2add3c91a61be055edb3b1eb7d78a (diff)
downloadpackages_apps_Dialer-fae80bfc230e05ca01019a214e45da552b2dd989.tar.gz
packages_apps_Dialer-fae80bfc230e05ca01019a214e45da552b2dd989.tar.bz2
packages_apps_Dialer-fae80bfc230e05ca01019a214e45da552b2dd989.zip
Fix crash in call log.
The latest CoordinatorLayout code checks for being used with an AppCompat theme on creation. As we neither need nor want to go the full AppCompat route and the CoordinatorLayout works fine without the AppCompat theme for what we're using it for, pretend our theme is AppCompat based just to make the check happy. Change-Id: I5fa321790fe539ceee652da8416297e009e1c495
-rw-r--r--res/values/styles.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 816e1ab33..d80ed9fbf 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -78,6 +78,13 @@
<item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item>
<item name="dialpad_key_button_touch_tint">@color/dialer_dialpad_touch_tint</item>
<item name="android:colorControlActivated">@color/dialer_theme_color</item>
+
+ <!-- Trick the support libraries into thinking this is an AppCompat theme. We don't
+ need the full thing, but we want to use CoordinatorLayout in our view hierarchy,
+ which checks for being used with an AppCompat theme on creation. -->
+ <item name="colorAccent">@color/dialtacts_theme_color</item>
+ <item name="colorPrimary">@color/dialer_theme_color</item>
+ <item name="colorPrimaryDark">@color/dialer_theme_color_dark</item>
</style>
<!-- Action bar overflow menu icon. -->