Skip to content

Commit

Permalink
Force INPUT_MODE_CLOCK of MaterialTimePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
Faltenreich committed Oct 8, 2023
1 parent 4d10304 commit 7ed6540
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Diaguard

[![version](https://img.shields.io/badge/Release-3.12.0-478063.svg)](https://github.com/Faltenreich/Diaguard/releases)
[![version](https://img.shields.io/badge/Release-3.12.1-478063.svg)](https://github.com/Faltenreich/Diaguard/releases)
[![ci](https://github.com/Faltenreich/Diaguard/actions/workflows/ci.yml/badge.svg)](https://github.com/Faltenreich/Diaguard/actions/workflows/ci.yml)

<img src="./resource/image/marketing/showcase.png" width="750">
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdk 21
targetSdk 33
versionCode 59
versionName "3.12.0"
versionCode 60
versionName "3.12.1"
vectorDrawables.useSupportLibrary true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public void show(FragmentManager fragmentManager) {
.setTimeFormat(TimeFormat.CLOCK_24H)
.setHour(time.getHourOfDay())
.setMinute(time.getMinuteOfDay())
// Workaround: com.google.android.material:material:1.7.+ changed the default inputMode to INPUT_MODE_KEYBOARD
.setInputMode(MaterialTimePicker.INPUT_MODE_CLOCK)
.build();
if (callback != null) {
picker.addOnNegativeButtonClickListener(view -> callback.accept(null));
Expand Down

0 comments on commit 7ed6540

Please sign in to comment.