Skip to content

Commit

Permalink
Remove logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
philliphsu committed Dec 18, 2016
1 parent c1a3aa2 commit a4304f5
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.text.format.DateUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
Expand Down Expand Up @@ -431,21 +430,17 @@ private void updateDisplay(boolean announce) {
int yearEnd = yearStart + year.length();
int monthDayStart = fullDate.indexOf(monthAndDay);
int monthDayEnd = monthDayStart + monthAndDay.length();
Log.d(TAG, String.format("yearStart = %d, yearEnd = %d, monthDayStart = %d, monthDayEnd = %d",
yearStart, yearEnd, monthDayStart, monthDayEnd));

boolean processed = false;
if (monthDayStart != -1 && yearStart != -1) {
if (mLocaleMonthDayIndex < mLocaleYearIndex) {
if (yearStart - monthDayEnd <= 2) {
Log.d(TAG, "Processed in new algorithm");
monthAndDay = fullDate.substring(monthDayStart, yearStart);
year = fullDate.substring(yearStart, fullDate.length());
processed = true;
}
} else {
if (monthDayStart - yearEnd <= 2) {
Log.d(TAG, "Processed in new algorithm");
year = fullDate.substring(yearStart, monthDayStart);
monthAndDay = fullDate.substring(monthDayStart, fullDate.length());
processed = true;
Expand Down Expand Up @@ -482,7 +477,6 @@ private void updateDisplay(boolean announce) {

// Year delimiters longer than 2 characters, fall back on pre-2.1.1 implementation.
if (!processed) {
Log.d(TAG, "Fall back to old algorithm");
// The month-day is already formatted appropriately
year = extractYearFromFormattedDate(fullDate, monthAndDay);
}
Expand Down

0 comments on commit a4304f5

Please sign in to comment.