rename widget_preview to widget_monthly_preview

This commit is contained in:
tibbi 2016-11-30 19:44:13 +01:00
parent 1d47de4b29
commit 13e2277f48
9 changed files with 8 additions and 6 deletions

View File

@ -66,7 +66,7 @@
<receiver
android:name=".helpers.MyWidgetMonthlyProvider"
android:icon="@mipmap/widget_preview"
android:icon="@mipmap/widget_monthly_preview"
android:label="@string/widget_monthly">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
@ -79,7 +79,7 @@
<receiver
android:name=".helpers.MyWidgetListProvider"
android:icon="@mipmap/widget_preview"
android:icon="@mipmap/widget_monthly_preview"
android:label="@string/widget_list">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>

View File

@ -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
}

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -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"/>

View File

@ -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"/>