@@ -306,10 +306,11 @@ object DialogFactory {
306
306
@StringRes positive : Int ,
307
307
@StringRes negative : Int ,
308
308
inputListener : InputListener ,
309
- defaultText : String
309
+ defaultText : String ? = null,
310
+ hintText : String ? = null
310
311
): AlertDialog {
311
- return getSimpleInputDialogBuilder(context, titleResource, positive,
312
- negative, inputListener, defaultText, InputType .TYPE_TEXT_VARIATION_URI ).create()
312
+ return getSimpleInputDialogBuilder(context, titleResource, positive, negative,
313
+ inputListener, defaultText, hintText , InputType .TYPE_TEXT_VARIATION_URI ).create()
313
314
}
314
315
315
316
private fun getSimpleInputDialogBuilder (
@@ -319,6 +320,7 @@ object DialogFactory {
319
320
@StringRes negative : Int ,
320
321
inputListener : InputListener ,
321
322
defaultText : String? ,
323
+ hintText : String? ,
322
324
inputType : Int
323
325
): AlertDialog .Builder {
324
326
val builder = MaterialAlertDialogBuilder (context)
@@ -331,6 +333,7 @@ object DialogFactory {
331
333
input.maxLines = 8
332
334
}
333
335
if (defaultText != null ) input.setText(defaultText)
336
+ if (hintText != null ) input.hint = hintText
334
337
335
338
val padding = DisplayMetricsUtil .dpToPx(16 )
336
339
builder.setView(input, padding, 0 , padding, 0 )
0 commit comments