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
Be careful on the CropImageView.onSaveInstanceState, because if i use a big bitmap, there's a chance that the app crashes.
I have CropImageView inside a fragment, and, when the app goes in background, it throws TransactionTooLargeException.
I've seen on onSaveInstanceState method that you save the bitmap inside the Bundle and i don't think this is a good practice.
To avoid this crash, i call setImageDrawable(null) when the Fragment goes inside onPause method
The text was updated successfully, but these errors were encountered:
I used the same workaround as @Nuclominus and it worked just fine. Just don't use Glide or Picasso because there are some weird behaviour on some devices, like bitmap inside the view was overly scaled.
Unfortunately i had to switch to another library because this one didn't have all the features i need.
Be careful on the CropImageView.onSaveInstanceState, because if i use a big bitmap, there's a chance that the app crashes.
I have CropImageView inside a fragment, and, when the app goes in background, it throws TransactionTooLargeException.
I've seen on onSaveInstanceState method that you save the bitmap inside the Bundle and i don't think this is a good practice.
To avoid this crash, i call setImageDrawable(null) when the Fragment goes inside onPause method
The text was updated successfully, but these errors were encountered: