mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
Fix possible crashes due to misplaced vector drawables. (#1894)
Vector drawables do *not* belong in dpi-specific subfolders. They should always be placed in the general "res/drawable" folder. This can actually cause crashes on certain devices.
This commit is contained in:
parent
099dce4f95
commit
91f3f2e505
6 changed files with 0 additions and 0 deletions
11
app/src/main/res/drawable/button_background_selector.xml
Normal file
11
app/src/main/res/drawable/button_background_selector.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:state_pressed="true"
|
||||
android:drawable="@color/pressed_button_light" />
|
||||
<item
|
||||
android:state_focused="true"
|
||||
android:drawable="@color/focused_button_light"
|
||||
/>
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
</selector>
|
||||
Loading…
Add table
Add a link
Reference in a new issue