fix #1987, update to the newer time picker dialog

This commit is contained in:
tibbi 2023-03-15 21:49:10 +01:00
parent b346774097
commit ec0eb778e1
4 changed files with 6 additions and 1 deletions

View File

@ -70,7 +70,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:2794ea914a'
implementation 'com.github.SimpleMobileTools:Simple-Commons:36efd1c355'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

View File

@ -21,6 +21,7 @@ import android.view.inputmethod.EditorInfo
import android.widget.ImageView
import android.widget.RelativeLayout
import com.google.android.material.timepicker.MaterialTimePicker
import com.google.android.material.timepicker.MaterialTimePicker.INPUT_MODE_CLOCK
import com.google.android.material.timepicker.TimeFormat
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
@ -1376,6 +1377,7 @@ class EventActivity : SimpleActivity() {
.setTimeFormat(timeFormat)
.setHour(mEventStartDateTime.hourOfDay)
.setMinute(mEventStartDateTime.minuteOfHour)
.setInputMode(INPUT_MODE_CLOCK)
.build()
timePicker.addOnPositiveButtonClickListener {
@ -1419,6 +1421,7 @@ class EventActivity : SimpleActivity() {
.setTimeFormat(timeFormat)
.setHour(mEventEndDateTime.hourOfDay)
.setMinute(mEventEndDateTime.minuteOfHour)
.setInputMode(INPUT_MODE_CLOCK)
.build()
timePicker.addOnPositiveButtonClickListener {

View File

@ -741,6 +741,7 @@ class SettingsActivity : SimpleActivity() {
.setTimeFormat(timeFormat)
.setHour(currentDateTime.hourOfDay)
.setMinute(currentDateTime.minuteOfHour)
.setInputMode(MaterialTimePicker.INPUT_MODE_CLOCK)
.build()
timePicker.addOnPositiveButtonClickListener {

View File

@ -563,6 +563,7 @@ class TaskActivity : SimpleActivity() {
.setTimeFormat(timeFormat)
.setHour(mTaskDateTime.hourOfDay)
.setMinute(mTaskDateTime.minuteOfHour)
.setInputMode(MaterialTimePicker.INPUT_MODE_CLOCK)
.build()
timePicker.addOnPositiveButtonClickListener {