am 57f8a4b4: am 1ff2df61: Merge "Fix bug #12066726 java.lang.NullPointerException at android.widget.CalendarView.onScroll(CalendarView.java:1216) - DO NOT MERGE" into klp-dev

* commit '57f8a4b4ed48ae3e2488bb3bafcd40137c71ec18':
  Fix bug #12066726 java.lang.NullPointerException at android.widget.CalendarView.onScroll(CalendarView.java:1216) - DO NOT MERGE
This commit is contained in:
Fabrice Di Meglio
2014-03-06 00:35:40 +00:00
committed by Android Git Automerger

View File

@@ -1210,6 +1210,7 @@ public class CalendarView extends FrameLayout {
child = (WeekView) view.getChildAt(offset); child = (WeekView) view.getChildAt(offset);
} }
if (child != null) {
// Find out which month we're moving into // Find out which month we're moving into
int month; int month;
if (mIsScrollingUp) { if (mIsScrollingUp) {
@@ -1239,6 +1240,8 @@ public class CalendarView extends FrameLayout {
} }
setMonthDisplayed(firstDay); setMonthDisplayed(firstDay);
} }
}
mPreviousScrollPosition = currScroll; mPreviousScrollPosition = currScroll;
mPreviousScrollState = mCurrentScrollState; mPreviousScrollState = mCurrentScrollState;
} }