0

I get screenshots on Android 10 using Pixelcopy.

I faced with a situation that when switching fragments via supportFragmentManager.beginTransaction().replace, an outdated screenshot is regularly returned.

In fact, a new screen has already appeared - PixelCopy was called after onResume's work on the new fragment, but the screenshot shows the image from the previous fragment.

Perhaps this is somehow related to a weak device (2 GB of RAM) Xiaomi Redmi 9a

Has anyone faced with this situation? Is there a way to eliminate this error maybe?

Viktoriia
  • 1
  • 1

0 Answers0