Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenjahani committed Dec 31, 2019
1 parent bf3f36c commit ab2d105
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MainActivity : AppCompatActivity(), DatePickerDialog.OnDateSetListener {
var dpd: DatePickerDialog? = null

// Change this
var calendarType: DatePickerDialog.Type = DatePickerDialog.Type.GREGORIAN // or DatePickerDialog.Type.GREGORIAN
var calendarType: DatePickerDialog.Type = DatePickerDialog.Type.JALALI // or DatePickerDialog.Type.GREGORIAN

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Expand Down Expand Up @@ -60,7 +60,9 @@ class MainActivity : AppCompatActivity(), DatePickerDialog.OnDateSetListener {
*
when (dpd?.calendarType) {
DatePickerDialog.Type.GREGORIAN -> dpd!!.setFont(null)
DatePickerDialog.Type.JALALI -> dpd!!.setFont(Typeface.createFromAsset(assets, "IRANSansMobile(FaNum).ttf"))
DatePickerDialog.Type.JALALI -> {
dpd!!.setFont(Typeface.createFromAsset(assets, "IRANSansMobile(FaNum).ttf"))
}
}
*/

Expand Down

0 comments on commit ab2d105

Please sign in to comment.