Closed Lexycon closed 6 years ago
Well that was a fail by me. I had to call the doneLoadingAnimation inside runOnUiThread(), because my callback was obv. executed in the Asynctask...
hii i am try your library
run time exception throw java.lang.NullPointerException use in
Bitmap largeIcon = BitmapFactory.decodeResource(getResources(), R.drawable.category_bg); int color = Color.parseColor("#FF4081"); btn.doneLoadingAnimation(color, largeIcon);
Well, I get a NPE when calling doneLoadingAnimation. I don't get it why, actually I have some more buttons in different fragments and they are working perfectly. If I debug and compare both circularProgressButton variables, they don't have any difference. circularProgressButton is not Null. Used version 1.8.4 and 1.12.0.
Edit: I have a callback/interface in the AsyncTask to the Fragment, which will then call this method. I guess this could be the issue?, but actually I am doing the same in the other fragments...