Fix last seen divider crash on Android <5.0

Apparently, it's not possible to reference an attribute in an xml
drawable on API <21, so we have to use separate light and dark theme
drawables instead.

Closes #6285
This commit is contained in:
haffenloher
2017-02-22 16:47:52 +01:00
parent d9659219de
commit 76ac95756f
5 changed files with 12 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<solid android:color="?conversation_item_last_seen_text_background"/>
<solid android:color="#ff333333"/>
<corners android:radius="65dp"/>
<padding android:bottom="10dp" android:left="15dp" android:right="15dp" android:top="10dp"/>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<solid android:color="@color/white"/>
<corners android:radius="65dp"/>
<padding android:bottom="10dp" android:left="15dp" android:right="15dp" android:top="10dp"/>
</shape>