Skip to content

Commit

Permalink
Fixed crashes on Android <5
Browse files Browse the repository at this point in the history
  • Loading branch information
David Vávra committed Jan 8, 2016
1 parent 6607c6d commit 9098d15
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions library/src/main/res/drawable-v21/sdl_button_pressed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="2dp" />
<solid android:color="?sdlPressedColor" />
</shape>
5 changes: 5 additions & 0 deletions library/src/main/res/drawable-v21/sdl_list_pressed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="?sdlPressedColor" />
</shape>
2 changes: 1 addition & 1 deletion library/src/main/res/drawable/sdl_button_pressed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="2dp" />
<solid android:color="?sdlPressedColor" />
<solid android:color="@color/sdl_pressed_light" />
</shape>
2 changes: 1 addition & 1 deletion library/src/main/res/drawable/sdl_list_pressed.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="?sdlPressedColor" />
<solid android:color="@color/sdl_pressed_light" />
</shape>

0 comments on commit 9098d15

Please sign in to comment.