Fix crash in Blacklist on Android 4

Fix inflation of activated_background.xml
This commit is contained in:
xynngh 2020-08-19 14:37:57 +04:00
parent a3b503853b
commit c9734be990
2 changed files with 17 additions and 12 deletions

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://gist.github.com/mikovali/9e57c559bc459c932bc984b64f489090 -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<selector>
<item android:state_activated="true">
<color android:color="?attr/colorControlActivated" />
</item>
</selector>
</item>
<item android:drawable="?attr/selectableItemBackground" />
</layer-list>

View File

@ -1,13 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- https://gist.github.com/mikovali/9e57c559bc459c932bc984b64f489090 -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<selector>
<item android:state_activated="true">
<color android:color="?attr/colorControlActivated" />
</item>
</selector>
</item>
<item android:drawable="?attr/selectableItemBackground" />
</layer-list>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/colorAccent" android:state_activated="true" />
<item android:drawable="@android:color/transparent" />
</selector>