From 7f6f632b735fab36f43d42077934c569d032323d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Borcz?= Date: Fri, 2 Nov 2018 17:38:20 +0100 Subject: [PATCH] Timetable widget refactor (#171) --- .idea/codeStyles/Project.xml | 3 +- app/src/main/AndroidManifest.xml | 14 +++ .../wulkanowy/data/db/SharedPrefHelper.kt | 16 +-- .../io/github/wulkanowy/di/BuilderModule.kt | 8 ++ .../notification/GradeNotification.kt | 4 +- .../widgets/TimetableWidgetService.kt | 27 ++++ .../ui/modules/grade/GradePresenter.kt | 4 +- .../wulkanowy/ui/modules/main/MainActivity.kt | 5 +- .../ui/modules/main/MainPresenter.kt | 4 +- .../timetable/TimetableWidgetFactory.kt | 93 ++++++++++++++ .../timetable/TimetableWidgetProvider.kt | 119 ++++++++++++++++++ .../res/drawable/ic_widget_chevron_24dp.png | Bin 0 -> 130 bytes .../drawable/img_timetable_widget_preview.png | Bin 0 -> 3425 bytes .../img_timetable_widget_preview.webp | Bin 10948 -> 0 bytes .../main/res/layout/item_widget_timetable.xml | 61 +++++---- app/src/main/res/layout/widget_timetable.xml | 87 +++++++------ .../res/xml/provider_widget_timetable.xml | 4 +- 17 files changed, 363 insertions(+), 86 deletions(-) create mode 100644 app/src/main/java/io/github/wulkanowy/services/widgets/TimetableWidgetService.kt create mode 100644 app/src/main/java/io/github/wulkanowy/ui/widgets/timetable/TimetableWidgetFactory.kt create mode 100644 app/src/main/java/io/github/wulkanowy/ui/widgets/timetable/TimetableWidgetProvider.kt create mode 100644 app/src/main/res/drawable/ic_widget_chevron_24dp.png create mode 100644 app/src/main/res/drawable/img_timetable_widget_preview.png delete mode 100644 app/src/main/res/drawable/img_timetable_widget_preview.webp diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 89f657f27..7bfdc60b8 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -160,7 +160,6 @@