Skip to content

Some development improvements and fixes - #1

Open
fredyk wants to merge 5 commits into
BlackBoxVision:masterfrom
fredyk:develop
Open

Some development improvements and fixes#1
fredyk wants to merge 5 commits into
BlackBoxVision:masterfrom
fredyk:develop

Conversation

@fredyk

@fredyk fredyk commented Nov 10, 2017

Copy link
Copy Markdown
  • (Added) Show long months
  • (Fixed) Leap years have 29 days in February
  • (Added) Use custom font
  • (Added) maxDate
  • (Fixed) Prevent an IndexOutOfBoundsException at onDateSelected
  • (Fixed) Properly access months and days array while setting initial positions
  • (Fixed) decreasing dayPos while changing to a shorter month
  • (Fixed) calculate maxTextHeight with a "j" to support lowerCase month names

 - (Fixed) Leap years have 29 days in February
 - (Added) Use custom font
 - (Added) maxDate
 - (Fixed) Prevent an IndexOutOfBoundsException at onDateSelected
 - (Fixed) Properly access months and days array while setting initial positions
 - (Fixed) decreasing dayPos while changing to a shorter month
 - (Fixed) calculate maxTextHeight with a "j" to support lowerCase month names

@JonatanSalas JonatanSalas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the only changes I would like you to do:

  • In order to keep the code aligned, rename the variable "mFont" for "font" or "fontTypeface".
  • Rename the setFont setter for setTypeface to keep the code aligned with the android API.
  • Add brackets to if/else when generating the Typeface.

@JonatanSalas

Copy link
Copy Markdown
Member

@fredyk Also, I want to thank you for opening a PR offering bug fixes and code improvement! 馃槃

@fredyk

fredyk commented Nov 13, 2017

Copy link
Copy Markdown
Author

I would like to kindly ask you to close this pull request in order to create another from the master branch with just bug fixes, so that I can continue developing my own version in the develop branch, making improvements without impairing yours, and creating successive pull requests. By the way, from my own experience,I would like to suggest you to create your own developing and pre-release branches (It gave me a better control over my changes ;) ).

Adi贸s y un saludo!

@JonatanSalas

Copy link
Copy Markdown
Member

Great! I will do it so! Thanks for the advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants