|
22 | 22 | import android.support.annotation.Nullable;
|
23 | 23 | import android.support.v4.content.ContextCompat;
|
24 | 24 | import android.text.format.DateUtils;
|
25 |
| -import android.util.Log; |
26 | 25 | import android.view.LayoutInflater;
|
27 | 26 | import android.view.View;
|
28 | 27 | import android.view.View.OnClickListener;
|
@@ -431,21 +430,17 @@ private void updateDisplay(boolean announce) {
|
431 | 430 | int yearEnd = yearStart + year.length();
|
432 | 431 | int monthDayStart = fullDate.indexOf(monthAndDay);
|
433 | 432 | int monthDayEnd = monthDayStart + monthAndDay.length();
|
434 |
| - Log.d(TAG, String.format("yearStart = %d, yearEnd = %d, monthDayStart = %d, monthDayEnd = %d", |
435 |
| - yearStart, yearEnd, monthDayStart, monthDayEnd)); |
436 | 433 |
|
437 | 434 | boolean processed = false;
|
438 | 435 | if (monthDayStart != -1 && yearStart != -1) {
|
439 | 436 | if (mLocaleMonthDayIndex < mLocaleYearIndex) {
|
440 | 437 | if (yearStart - monthDayEnd <= 2) {
|
441 |
| - Log.d(TAG, "Processed in new algorithm"); |
442 | 438 | monthAndDay = fullDate.substring(monthDayStart, yearStart);
|
443 | 439 | year = fullDate.substring(yearStart, fullDate.length());
|
444 | 440 | processed = true;
|
445 | 441 | }
|
446 | 442 | } else {
|
447 | 443 | if (monthDayStart - yearEnd <= 2) {
|
448 |
| - Log.d(TAG, "Processed in new algorithm"); |
449 | 444 | year = fullDate.substring(yearStart, monthDayStart);
|
450 | 445 | monthAndDay = fullDate.substring(monthDayStart, fullDate.length());
|
451 | 446 | processed = true;
|
@@ -482,7 +477,6 @@ private void updateDisplay(boolean announce) {
|
482 | 477 |
|
483 | 478 | // Year delimiters longer than 2 characters, fall back on pre-2.1.1 implementation.
|
484 | 479 | if (!processed) {
|
485 |
| - Log.d(TAG, "Fall back to old algorithm"); |
486 | 480 | // The month-day is already formatted appropriately
|
487 | 481 | year = extractYearFromFormattedDate(fullDate, monthAndDay);
|
488 | 482 | }
|
|
0 commit comments