diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b9f116152..2134677c0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -66,7 +66,7 @@ @@ -79,7 +79,7 @@ diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt index 14f74fe0e..a16f40304 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/WidgetListConfigureActivity.kt @@ -164,10 +164,12 @@ class WidgetListConfigureActivity : AppCompatActivity() { day = Formatter.getDayTitle(this, code) listItems.add(ListSection(day)) + time = dateTime.withHourOfDay(8) + listItems.add(ListEvent(3, (time.millis / 1000).toInt(), (time.plusHours(1).millis / 1000).toInt(), "Library", "")) time = dateTime.withHourOfDay(13) - listItems.add(ListEvent(3, (time.millis / 1000).toInt(), (time.plusHours(1).millis / 1000).toInt(), "Lunch with Mary", "In the Plaza")) + listItems.add(ListEvent(4, (time.millis / 1000).toInt(), (time.plusHours(1).millis / 1000).toInt(), "Lunch with Mary", "In the Plaza")) time = dateTime.withHourOfDay(18) - listItems.add(ListEvent(4, (time.millis / 1000).toInt(), (time.plusMinutes(10).millis / 1000).toInt(), "Coffee time", "")) + listItems.add(ListEvent(5, (time.millis / 1000).toInt(), (time.plusMinutes(10).millis / 1000).toInt(), "Coffee time", "")) return listItems } diff --git a/app/src/main/res/mipmap-hdpi/widget_preview.png b/app/src/main/res/mipmap-hdpi/widget_monthly_preview.png similarity index 100% rename from app/src/main/res/mipmap-hdpi/widget_preview.png rename to app/src/main/res/mipmap-hdpi/widget_monthly_preview.png diff --git a/app/src/main/res/mipmap-mdpi/widget_preview.png b/app/src/main/res/mipmap-mdpi/widget_monthly_preview.png similarity index 100% rename from app/src/main/res/mipmap-mdpi/widget_preview.png rename to app/src/main/res/mipmap-mdpi/widget_monthly_preview.png diff --git a/app/src/main/res/mipmap-xhdpi/widget_preview.png b/app/src/main/res/mipmap-xhdpi/widget_monthly_preview.png similarity index 100% rename from app/src/main/res/mipmap-xhdpi/widget_preview.png rename to app/src/main/res/mipmap-xhdpi/widget_monthly_preview.png diff --git a/app/src/main/res/mipmap-xxhdpi/widget_preview.png b/app/src/main/res/mipmap-xxhdpi/widget_monthly_preview.png similarity index 100% rename from app/src/main/res/mipmap-xxhdpi/widget_preview.png rename to app/src/main/res/mipmap-xxhdpi/widget_monthly_preview.png diff --git a/app/src/main/res/mipmap-xxxhdpi/widget_preview.png b/app/src/main/res/mipmap-xxxhdpi/widget_monthly_preview.png similarity index 100% rename from app/src/main/res/mipmap-xxxhdpi/widget_preview.png rename to app/src/main/res/mipmap-xxxhdpi/widget_monthly_preview.png diff --git a/app/src/main/res/xml/widget_list_info.xml b/app/src/main/res/xml/widget_list_info.xml index 74f05ae59..00fa8f646 100644 --- a/app/src/main/res/xml/widget_list_info.xml +++ b/app/src/main/res/xml/widget_list_info.xml @@ -4,6 +4,6 @@ android:initialLayout="@layout/widget_event_list" android:minHeight="@dimen/min_widget_height" android:minWidth="@dimen/min_widget_width" - android:previewImage="@mipmap/widget_preview" + android:previewImage="@mipmap/widget_monthly_preview" android:resizeMode="horizontal|vertical" android:updatePeriodMillis="600000"/> diff --git a/app/src/main/res/xml/widget_monthly_info.xml b/app/src/main/res/xml/widget_monthly_info.xml index f4f17f85b..139bf8723 100644 --- a/app/src/main/res/xml/widget_monthly_info.xml +++ b/app/src/main/res/xml/widget_monthly_info.xml @@ -4,6 +4,6 @@ android:initialLayout="@layout/fragment_month" android:minHeight="@dimen/min_widget_height" android:minWidth="@dimen/min_widget_width" - android:previewImage="@mipmap/widget_preview" + android:previewImage="@mipmap/widget_monthly_preview" android:resizeMode="horizontal|vertical" android:updatePeriodMillis="3600000"/>