From 6906a373b99ac552db5bdbde34fcb58a38d872b3 Mon Sep 17 00:00:00 2001 From: Oleh Misko Date: Fri, 4 Aug 2017 16:24:26 +0300 Subject: [PATCH] Changed some small code style issues --- .../com/simplemobiletools/calendar/views/SmallMonthView.kt | 2 +- app/src/main/res/layout-land/fragment_year.xml | 3 +-- app/src/main/res/values/dimens.xml | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/views/SmallMonthView.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/views/SmallMonthView.kt index fdf0d2ee9..b9e1ab1b2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/views/SmallMonthView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/views/SmallMonthView.kt @@ -73,7 +73,7 @@ class SmallMonthView(context: Context, attrs: AttributeSet, defStyle: Int) : Vie override fun onDraw(canvas: Canvas) { super.onDraw(canvas) if (mDayWidth == 0f) { - if(resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE){ + if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) { mDayWidth = (canvas.width / 9.2).toFloat() } else mDayWidth = (canvas.width / 8).toFloat() } diff --git a/app/src/main/res/layout-land/fragment_year.xml b/app/src/main/res/layout-land/fragment_year.xml index a28716501..40c30541c 100644 --- a/app/src/main/res/layout-land/fragment_year.xml +++ b/app/src/main/res/layout-land/fragment_year.xml @@ -31,8 +31,7 @@ android:layout_height="wrap_content" android:layout_below="@+id/month_1_label" android:layout_marginLeft="@dimen/yearly_month_left_padding" - android:layout_marginStart="@dimen/yearly_month_left_padding" - /> + android:layout_marginStart="@dimen/yearly_month_left_padding" /> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index e18f70055..074e892fb 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -15,6 +15,9 @@ 40dp + 40dp + 40dp + 14sp 17sp 22sp