Skip to content

Commit 9098d15

Browse files
author
David Vávra
committed
Fixed crashes on Android <5
Due to this bug: https://code.google.com/p/android/issues/detail?id=26251
1 parent 6607c6d commit 9098d15

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle">
4+
<corners android:radius="2dp" />
5+
<solid android:color="?sdlPressedColor" />
6+
</shape>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle">
4+
<solid android:color="?sdlPressedColor" />
5+
</shape>

library/src/main/res/drawable/sdl_button_pressed.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<shape xmlns:android="http://schemas.android.com/apk/res/android"
33
android:shape="rectangle">
44
<corners android:radius="2dp" />
5-
<solid android:color="?sdlPressedColor" />
5+
<solid android:color="@color/sdl_pressed_light" />
66
</shape>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<shape xmlns:android="http://schemas.android.com/apk/res/android"
33
android:shape="rectangle">
4-
<solid android:color="?sdlPressedColor" />
4+
<solid android:color="@color/sdl_pressed_light" />
55
</shape>

0 commit comments

Comments
 (0)