From 5981d5c68ee7cfe8eed778c093b18283750b7ace Mon Sep 17 00:00:00 2001 From: Bill Farmer Date: Sun, 4 Jun 2017 09:45:27 +0100 Subject: [PATCH] Update version --- README.md | 2 +- .../main/java/org/billthefarmer/test/Main.java | 15 +++++++++++++++ .../billthefarmer/view/CustomCalendarView.java | 3 +-- .../main/java/org/billthefarmer/view/DayView.java | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 35c27ab..04acc5a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ allprojects { and: ```gradle dependencies { - compile 'com.github.billthefarmer:CustomCalendarView:v1.0' + compile 'com.github.billthefarmer:CustomCalendarView:v1.01' } ``` diff --git a/app/src/main/java/org/billthefarmer/test/Main.java b/app/src/main/java/org/billthefarmer/test/Main.java index b612f1f..b2166a2 100644 --- a/app/src/main/java/org/billthefarmer/test/Main.java +++ b/app/src/main/java/org/billthefarmer/test/Main.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2017 Bill Farmer. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.billthefarmer.test; diff --git a/library/src/main/java/org/billthefarmer/view/CustomCalendarView.java b/library/src/main/java/org/billthefarmer/view/CustomCalendarView.java index b33bfef..cf66960 100644 --- a/library/src/main/java/org/billthefarmer/view/CustomCalendarView.java +++ b/library/src/main/java/org/billthefarmer/view/CustomCalendarView.java @@ -41,7 +41,6 @@ public class CustomCalendarView extends LinearLayout { private static final String TAG = "CustomCalendarView"; - private static final int CALENDAR_DAYS = 42; // Days of week @@ -238,8 +237,8 @@ private void onSwipeRight() currentCalendar = Calendar.getInstance(Locale.getDefault()); currentCalendar.add(Calendar.MONTH, currentMonthIndex); - refreshCalendar(currentCalendar); + if (calendarListener != null) calendarListener.onMonthChanged(currentCalendar); } diff --git a/library/src/main/java/org/billthefarmer/view/DayView.java b/library/src/main/java/org/billthefarmer/view/DayView.java index 9b8244f..6060f13 100644 --- a/library/src/main/java/org/billthefarmer/view/DayView.java +++ b/library/src/main/java/org/billthefarmer/view/DayView.java @@ -52,7 +52,7 @@ public void bind(Calendar date, List decorators) // decorate public void decorate() { - //Set custom decorators + // Set custom decorators if (decorators != null) { for (DayDecorator decorator : decorators)