From 92ba7248ef271d4df68f926bf7fe6d8a8f4f43a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Sat, 11 Jan 2020 13:56:09 +0100 Subject: [PATCH] [UI] Fix vector drawables crashing on API < 21. --- app/src/main/res/drawable/ic_android.xml | 9 --------- app/src/main/res/drawable/ic_light.xml | 9 --------- app/src/main/res/drawable/ic_night.xml | 9 --------- app/src/main/res/layout/card_home_timetable.xml | 13 +++++++------ app/src/main/res/layout/dialog_day.xml | 7 ++++--- app/src/main/res/layout/dialog_lesson_details.xml | 4 ++-- app/src/main/res/layout/fragment_notifications.xml | 7 ++++--- app/src/main/res/layout/timetable_free_day.xml | 5 +++-- app/src/main/res/layout/timetable_no_lessons.xml | 10 +++++----- app/src/main/res/layout/timetable_no_timetable.xml | 7 ++++--- 10 files changed, 29 insertions(+), 51 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_android.xml delete mode 100644 app/src/main/res/drawable/ic_light.xml delete mode 100644 app/src/main/res/drawable/ic_night.xml diff --git a/app/src/main/res/drawable/ic_android.xml b/app/src/main/res/drawable/ic_android.xml deleted file mode 100644 index fa2bc215..00000000 --- a/app/src/main/res/drawable/ic_android.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_light.xml b/app/src/main/res/drawable/ic_light.xml deleted file mode 100644 index 4f7c019c..00000000 --- a/app/src/main/res/drawable/ic_light.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_night.xml b/app/src/main/res/drawable/ic_night.xml deleted file mode 100644 index 008a4fbf..00000000 --- a/app/src/main/res/drawable/ic_night.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/layout/card_home_timetable.xml b/app/src/main/res/layout/card_home_timetable.xml index d2659c2b..5a1d8514 100644 --- a/app/src/main/res/layout/card_home_timetable.xml +++ b/app/src/main/res/layout/card_home_timetable.xml @@ -4,6 +4,7 @@ --> - + app:srcCompat="@drawable/ic_sync"/> - + app:srcCompat="@drawable/ic_timetable"/> - + app:srcCompat="@drawable/ic_no_timetable"/> + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto"> @@ -65,12 +66,12 @@ android:visibility="gone" tools:visibility="visible"> - - + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto"> @@ -12,12 +13,12 @@ tools:listitem="@layout/row_notifications_item" tools:visibility="gone" /> - - - - \ No newline at end of file + android:textSize="24sp" + app:drawableTopCompat="@drawable/ic_timetable" /> \ No newline at end of file diff --git a/app/src/main/res/layout/timetable_no_timetable.xml b/app/src/main/res/layout/timetable_no_timetable.xml index b69d762b..8c80ee02 100644 --- a/app/src/main/res/layout/timetable_no_timetable.xml +++ b/app/src/main/res/layout/timetable_no_timetable.xml @@ -3,7 +3,8 @@ --> + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto"> -