fix #1987, update to the newer time picker dialog
This commit is contained in:
parent
b346774097
commit
ec0eb778e1
|
@ -70,7 +70,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:2794ea914a'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:36efd1c355'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||||
|
|
|
@ -21,6 +21,7 @@ import android.view.inputmethod.EditorInfo
|
||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
import com.google.android.material.timepicker.MaterialTimePicker
|
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.android.material.timepicker.TimeFormat
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.google.gson.reflect.TypeToken
|
import com.google.gson.reflect.TypeToken
|
||||||
|
@ -1376,6 +1377,7 @@ class EventActivity : SimpleActivity() {
|
||||||
.setTimeFormat(timeFormat)
|
.setTimeFormat(timeFormat)
|
||||||
.setHour(mEventStartDateTime.hourOfDay)
|
.setHour(mEventStartDateTime.hourOfDay)
|
||||||
.setMinute(mEventStartDateTime.minuteOfHour)
|
.setMinute(mEventStartDateTime.minuteOfHour)
|
||||||
|
.setInputMode(INPUT_MODE_CLOCK)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
timePicker.addOnPositiveButtonClickListener {
|
timePicker.addOnPositiveButtonClickListener {
|
||||||
|
@ -1419,6 +1421,7 @@ class EventActivity : SimpleActivity() {
|
||||||
.setTimeFormat(timeFormat)
|
.setTimeFormat(timeFormat)
|
||||||
.setHour(mEventEndDateTime.hourOfDay)
|
.setHour(mEventEndDateTime.hourOfDay)
|
||||||
.setMinute(mEventEndDateTime.minuteOfHour)
|
.setMinute(mEventEndDateTime.minuteOfHour)
|
||||||
|
.setInputMode(INPUT_MODE_CLOCK)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
timePicker.addOnPositiveButtonClickListener {
|
timePicker.addOnPositiveButtonClickListener {
|
||||||
|
|
|
@ -741,6 +741,7 @@ class SettingsActivity : SimpleActivity() {
|
||||||
.setTimeFormat(timeFormat)
|
.setTimeFormat(timeFormat)
|
||||||
.setHour(currentDateTime.hourOfDay)
|
.setHour(currentDateTime.hourOfDay)
|
||||||
.setMinute(currentDateTime.minuteOfHour)
|
.setMinute(currentDateTime.minuteOfHour)
|
||||||
|
.setInputMode(MaterialTimePicker.INPUT_MODE_CLOCK)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
timePicker.addOnPositiveButtonClickListener {
|
timePicker.addOnPositiveButtonClickListener {
|
||||||
|
|
|
@ -563,6 +563,7 @@ class TaskActivity : SimpleActivity() {
|
||||||
.setTimeFormat(timeFormat)
|
.setTimeFormat(timeFormat)
|
||||||
.setHour(mTaskDateTime.hourOfDay)
|
.setHour(mTaskDateTime.hourOfDay)
|
||||||
.setMinute(mTaskDateTime.minuteOfHour)
|
.setMinute(mTaskDateTime.minuteOfHour)
|
||||||
|
.setInputMode(MaterialTimePicker.INPUT_MODE_CLOCK)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
timePicker.addOnPositiveButtonClickListener {
|
timePicker.addOnPositiveButtonClickListener {
|
||||||
|
|
Loading…
Reference in New Issue