mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 04:22:23 +00:00
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:
@@ -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"/>
|
||||
7
res/drawable/last_seen_divider_text_background_light.xml
Normal file
7
res/drawable/last_seen_divider_text_background_light.xml
Normal 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>
|
||||
Reference in New Issue
Block a user