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
{{ message }}
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
When manipulating a MaterialAccount, it can happen that setPhoto() is called twice in a short timespan. In that case, an IllegalStateException is thrown, because you cannot execute the same instance of an AsyncTask while it is already executing.
A workaround would be to define AsyncTask inner classes of MaterialAccount (ResizePhotoBitmapAsyncTask, ResizeBackgroundBitmapAsyncTask...) and define setPhotoBitmap, setBackgroundBitmap, etc... as the following:
When manipulating a MaterialAccount, it can happen that setPhoto() is called twice in a short timespan. In that case, an IllegalStateException is thrown, because you cannot execute the same instance of an AsyncTask while it is already executing.
A workaround would be to define AsyncTask inner classes of MaterialAccount (ResizePhotoBitmapAsyncTask, ResizeBackgroundBitmapAsyncTask...) and define setPhotoBitmap, setBackgroundBitmap, etc... as the following:
The text was updated successfully, but these errors were encountered: