question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.clearHighlightedDates() does not work on a range.

See original GitHub issue

Android 6.0, using com.squareup:android-times-square:1.6.5@aar

  1. Initialize a CalendarPickerView with selection type RANGE.
  2. Set up a ‘Clear’ button, that when you click it, clears the calendar’s selections (mCalendar.clearHighlightedDates()).
  3. Run the application, select some dates (notice they are all highlighted).
  4. Click your Clear button. –> Notice that the dates are still highlighted.

Debugging shows that the highlightedCells in the CalendarPickerView is empty, so there is nothing to update, so the views stay highlighted. So when the dates / range are selected, shouldn’t they also be added to the highlightedCells list?

Maybe I don’t understand what the clearHighlightedDates() function is supposed to do.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
JakeWhartoncommented, Apr 10, 2017

Do not use that site. search.maven.org or repo1.maven.org are the real sources of packages.

On Mon, Apr 10, 2017, 12:51 PM Elliott Jay Dub notifications@github.com wrote:

I see. This is where I was looking: https://mvnrepository.com/artifact/com.squareup/android-times-square

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/square/android-times-square/issues/358#issuecomment-293009991, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEEEQCgyfs0XnYzieDXttsu_boXSf_Zks5rul38gaJpZM4M2Lwu .

0reactions
elliott-accoladecommented, Apr 10, 2017

Got it, thanks for clarifying.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CalendarPickerView.java example - Javatips.net
The calendar will scroll to that date if it's not already * visible. ... RANGE && selectedDates.size() > 2) { throw new IllegalArgumentException(...
Read more >
Highest scored 'android-calendar' questions - Page 20 - Stack ...
I want the DatePickerDialog to not show dates before current date. I'm using the setMinDate(long l) method. But it's not working. I use...
Read more >
review_comments.txt - GitHub
If this doesn't work without setter then I think we should just leave it as it is instead ... The current lengthenShortUrl() is...
Read more >
weixin_39929377的博客_CSDN博客-领域博主
我已经尝试了将textarea的.html()和.val()属性设置为我的Ajax调用数据参数的 ... 130.130.16.1 255.255.255.0 Switch (config-if)#no shutdown Switch ...
Read more >
Standalone Android widget for picking a single date from a ...
clearHighlightedDates() does not work on a range. Android 6.0, using com.squareup:android-times-square:1.6.5@aar.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found