fix #1987, update to the newer time picker dialog
This commit is contained in:
parent
b346774097
commit
ec0eb778e1
|
@ -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'
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -741,6 +741,7 @@ class SettingsActivity : SimpleActivity() {
|
|||
.setTimeFormat(timeFormat)
|
||||
.setHour(currentDateTime.hourOfDay)
|
||||
.setMinute(currentDateTime.minuteOfHour)
|
||||
.setInputMode(MaterialTimePicker.INPUT_MODE_CLOCK)
|
||||
.build()
|
||||
|
||||
timePicker.addOnPositiveButtonClickListener {
|
||||
|
|
|
@ -563,6 +563,7 @@ class TaskActivity : SimpleActivity() {
|
|||
.setTimeFormat(timeFormat)
|
||||
.setHour(mTaskDateTime.hourOfDay)
|
||||
.setMinute(mTaskDateTime.minuteOfHour)
|
||||
.setInputMode(MaterialTimePicker.INPUT_MODE_CLOCK)
|
||||
.build()
|
||||
|
||||
timePicker.addOnPositiveButtonClickListener {
|
||||
|
|
Loading…
Reference in New Issue