From c4f8c3dabab5511b8c3be4054d995d663ef53051 Mon Sep 17 00:00:00 2001 From: 47even <47even@gmail.com> Date: Mon, 11 Oct 2021 11:59:37 +0330 Subject: [PATCH] Update README.md for 1.0.4 --- README.md | 7 +++++++ widget-time/build.gradle | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 74321b2..64de185 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,13 @@ dateTimeSwitcher.adapter = object : DateTimeSwitcherAdapter() { } ``` +### Switch Mode Listener +```kotlin +dateTimeSwitcher.setOnSwitchChangedListener { switchMode, startDateTime, endDateTime -> + .. +} +``` + ### Next and Previous Listeners ```kotlin dateTimeSwitcher.setOnNextClickListener { switchMode, startDateTime, endDateTime -> diff --git a/widget-time/build.gradle b/widget-time/build.gradle index a914b04..0e32be9 100644 --- a/widget-time/build.gradle +++ b/widget-time/build.gradle @@ -10,8 +10,8 @@ android { defaultConfig { minSdk 21 targetSdk 31 - versionCode 1 - versionName "1.0.3" + versionCode 5 + versionName "1.0.4" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" @@ -43,7 +43,7 @@ afterEvaluate { from components.release groupId = 'com.github.edasich' artifactId = 'widget-time' - version = '1.0.3' + version = '1.0.4' } } }