Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange comment at onDayOfMonthSelected #49

Closed
altairmizuchi opened this issue Sep 10, 2016 · 2 comments
Closed

strange comment at onDayOfMonthSelected #49

altairmizuchi opened this issue Sep 10, 2016 · 2 comments

Comments

@altairmizuchi
Copy link

altairmizuchi commented Sep 10, 2016

@Override
    public void onDayOfMonthSelected(int year, int month, int day) {

        if(tabHost.getCurrentTab()==0){
            mCalendar.set(Calendar.YEAR, year);
            mCalendar.set(Calendar.MONTH, month);
            mCalendar.set(Calendar.DAY_OF_MONTH, day);
        }
       else{
            mCalendarEnd.set(Calendar.YEAR, year);
            mCalendarEnd.set(Calendar.MONTH, month);
            mCalendarEnd.set(Calendar.DAY_OF_MONTH, day);
        }

        //updatePickers(); <======= why is it commented?
        updateDisplay(true);
    }

Because of this comment onDateChanged callback is not called when I choose a date. Was it commented for some reason?

@heysupratim
Copy link
Owner

@altairmizuchi - yeah this is wrong , must have been old code . Thanks for pointing this out

@heysupratim
Copy link
Owner

fixed in ebdcd05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants