Getting initial image drawable
timplifier opened this issue · comments
I was trying to get the drawable of the initial image in order to download it to local storage, however, it is not possible now. I was using this piece of code
avatarView.drawable.toBitmap()
it throws null pointer exception, stating that drawable is null all the time.
Hi @Clar1fy, for now, we don't have support providing image drawable of the AvatarView
.
Instead, check out this - https://stackoverflow.com/questions/3107527/android-save-view-to-jpg-or-png
Thanks!
Thanks