You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one is confusing me.. I was using the color picker just fine yesterday and now today the project is failing to build with the compiler error:
/Users/jpage/working/projects/hubitat-dashboard/app/src/main/java/com/jpage4500/hubitat/ui/fragments/DashboardFragment.java:654: error: cannot access KMappedMarker
group.registerPicker(dialogLayout.colorSeekBar);
^
class file for kotlin.jvm.internal.markers.KMappedMarker not found
It's complaining about the lines here:
PickerGroup<IntegerHSLColor> group = new PickerGroup<>();
group.registerPicker(dialogLayout.colorSeekBar);
group.registerPicker(dialogLayout.saturationSeekBar);
group.registerPicker(dialogLayout.lightnessSeekBar);
I imagine this isn't related to your library since it was building just fine yesterday. But, I can't figure out what changed or why it's now all of the sudden failing to compile so I figured someone here might have an idea why
The text was updated successfully, but these errors were encountered:
FWIW - I did notice when implementing this that there was no 'registerPickers' method like is shown in the example. My app is in Java and not Kotlin though. Anyway, registerPicker() did work just fine but figured I'd mention that too..
// Group pickers with PickerGroup to automatically synchronize color across them
val group = PickerGroup<IntegerHSLColor>().also {
it.registerPickers(
hueSeekBar,
saturationSeekBar,
lightnessSeekBar,
alphaSeekBar
)
}
@jpage4500, thank you for reporting this.
Wonderful! Great catch on registerPickers, I will check the docs and API.
I will also double-check on what plugins/classpath are needed to make it work with Java and add that to the docs too 👍
This one is confusing me.. I was using the color picker just fine yesterday and now today the project is failing to build with the compiler error:
It's complaining about the lines here:
I imagine this isn't related to your library since it was building just fine yesterday. But, I can't figure out what changed or why it's now all of the sudden failing to compile so I figured someone here might have an idea why
The text was updated successfully, but these errors were encountered: