|
|
@ -120,8 +120,9 @@ class NumberPickerFactory
|
|
|
|
.create()
|
|
|
|
.create()
|
|
|
|
|
|
|
|
|
|
|
|
dialog.setOnShowListener {
|
|
|
|
dialog.setOnShowListener {
|
|
|
|
val preferences = (context.applicationContext as HabitsApplication).component.preferences
|
|
|
|
val preferences =
|
|
|
|
if(!preferences.isSkipEnabled){
|
|
|
|
(context.applicationContext as HabitsApplication).component.preferences
|
|
|
|
|
|
|
|
if (!preferences.isSkipEnabled) {
|
|
|
|
dialog.getButton(BUTTON_NEGATIVE).visibility = View.GONE
|
|
|
|
dialog.getButton(BUTTON_NEGATIVE).visibility = View.GONE
|
|
|
|
}
|
|
|
|
}
|
|
|
|
showSoftInput(dialog, pickerInputText)
|
|
|
|
showSoftInput(dialog, pickerInputText)
|
|
|
|