From f798f245cd1b1c4c17b046a89a02fa1ebb7dfa65 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 16 May 2018 16:18:11 +0200 Subject: [PATCH] fix #53, remove the top margin from the widgets time --- .../simplemobiletools/clock/helpers/MyWidgetDateTimeProvider.kt | 2 +- app/src/main/res/layout/widget_date_time.xml | 1 - app/src/main/res/layout/widget_date_time_with_shadow.xml | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/helpers/MyWidgetDateTimeProvider.kt b/app/src/main/kotlin/com/simplemobiletools/clock/helpers/MyWidgetDateTimeProvider.kt index 8bae3cc6..d42ac1ca 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/helpers/MyWidgetDateTimeProvider.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/helpers/MyWidgetDateTimeProvider.kt @@ -126,7 +126,7 @@ class MyWidgetDateTimeProvider : AppWidgetProvider() { } } - fun getMultiplyColoredBitmap(resourceId: Int, newColor: Int, context: Context): Bitmap { + private fun getMultiplyColoredBitmap(resourceId: Int, newColor: Int, context: Context): Bitmap { val options = BitmapFactory.Options() options.inMutable = true val bmp = BitmapFactory.decodeResource(context.resources, resourceId, options) diff --git a/app/src/main/res/layout/widget_date_time.xml b/app/src/main/res/layout/widget_date_time.xml index 18cd851f..65f605ae 100644 --- a/app/src/main/res/layout/widget_date_time.xml +++ b/app/src/main/res/layout/widget_date_time.xml @@ -17,7 +17,6 @@ android:id="@+id/widget_time" android:layout_width="wrap_content" android:layout_height="@dimen/widget_time_height" - android:layout_marginTop="-2dp" android:includeFontPadding="false" android:textSize="@dimen/widget_time_text_size" tools:text="00:00"/> diff --git a/app/src/main/res/layout/widget_date_time_with_shadow.xml b/app/src/main/res/layout/widget_date_time_with_shadow.xml index 6e694f2a..00375d3d 100644 --- a/app/src/main/res/layout/widget_date_time_with_shadow.xml +++ b/app/src/main/res/layout/widget_date_time_with_shadow.xml @@ -17,7 +17,6 @@ android:id="@+id/widget_time" android:layout_width="wrap_content" android:layout_height="@dimen/widget_time_height" - android:layout_marginTop="-2dp" android:includeFontPadding="false" android:shadowColor="@android:color/black" android:shadowDy="1"