Skip to content

Commit

Permalink
Change start index to 0 when extracting the front partition of the fu…
Browse files Browse the repository at this point in the history
…ll date string.
  • Loading branch information
philliphsu committed Jun 4, 2017
1 parent b6da541 commit 8360583
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,13 @@ private void updateDisplay(boolean announce) {
if (monthDayStart != -1 && yearStart != -1) {
if (mLocaleMonthDayIndex < mLocaleYearIndex) {
if (yearStart - monthDayEnd <= 2) {
monthAndDay = fullDate.substring(monthDayStart, yearStart);
monthAndDay = fullDate.substring(0, yearStart);
year = fullDate.substring(yearStart, fullDate.length());
processed = true;
}
} else {
if (monthDayStart - yearEnd <= 2) {
year = fullDate.substring(yearStart, monthDayStart);
year = fullDate.substring(0, monthDayStart);
monthAndDay = fullDate.substring(monthDayStart, fullDate.length());
processed = true;
}
Expand Down

0 comments on commit 8360583

Please sign in to comment.