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

slider.updateIcon doesnt update Bitmap icon #2604

Closed
6 of 11 tasks
AlexMercier opened this issue May 11, 2020 · 0 comments
Closed
6 of 11 tasks

slider.updateIcon doesnt update Bitmap icon #2604

AlexMercier opened this issue May 11, 2020 · 0 comments
Assignees

Comments

@AlexMercier
Copy link

About this issue

slider.updateIcon(identifier, ImageHolder(bitmap)) doesn't display icon given as Bitmap

I just updated my code and update library from v6 to new kotlin v 8.0.2
and I have method to download png images from web to bitmap and then set it on ui thread to slider items.
Firstly I have PrimaryDrawerItem without icon, then my code download bitmap and after checking that bitmap is loaded I try to set it to slider:

if(slider.getDrawerItem(id)!=null && b!=null) { //b is bitmap 
        slider.updateIcon(id, ImageHolder(b))
        MyLog.log("$id is set icon")
}

I can see in log next lines: (It means that identifier and bitmap is correct)

106 is set icon
103 is set icon
112 is set icon

but in fact my items have no icons.
For testing i tried to set icons from IdRes drawables and it work. But with bitmaps it seems them don't work.

2020-05-12_025208
first 2 items loaded by res id, next 3 items without icons is a set as bitmap icons...

Details

  •  Used library version 8.0.2
  •  Used support library version: AndroidX appcompat 1.1.0
  •  Used gradle build tools version: not relavant
  •  Used tooling / Android Studio version: not relavant
  •  Other used libraries, potential conflicting libraries: not relavant

Checklist

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

No branches or pull requests

2 participants