Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 424300f3 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Ensure that no callback is invoked while initializing DatePicker" into honeycomb

parents a3aaad1f 3d20c846
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -471,6 +471,8 @@ public class DatePicker extends FrameLayout {
     */
    public void init(int year, int monthOfYear, int dayOfMonth,
            OnDateChangedListener onDateChangedListener) {
        // make sure there is no callback
        mOnDateChangedListener = null;
        updateDate(year, monthOfYear, dayOfMonth);
        // register the callback after updating the date
        mOnDateChangedListener = onDateChangedListener;