Skip to content

Commit

Permalink
Use current time as hint
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Jul 5, 2020
1 parent ce38481 commit 3e0d776
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ fun Activity.showDateInput(title: String, format: String, handler: (Date?) -> Un
val customView = LayoutInflater.from(this).inflate(R.layout.dialog_text_input, findViewById(android.R.id.content), false)

val editText = customView.findViewById<EditText>(R.id.input)
editText.hint = formatter.format(Date())
editText.inputType = InputType.TYPE_CLASS_TEXT
builder.setView(customView)

Expand Down

0 comments on commit 3e0d776

Please sign in to comment.