Skip to content

Commit 24786bf

Browse files
romtsncodex
andcommitted
docs(android): Explain unstable replay captures
Document why PixelCopyStrategy caps skipped unstable captures so continuous animations keep producing replay frames. Refs GH-5489 Co-Authored-By: Codex <noreply@openai.com>
1 parent 741c925 commit 24786bf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sentry-android-replay/src/main/java/io/sentry/android/replay/screenshot/PixelCopyStrategy.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ internal class PixelCopyStrategy(
4141
) : ScreenshotStrategy {
4242

4343
private companion object {
44+
/**
45+
* An unstable capture means the view hierarchy changed while PixelCopy was in flight. Cap
46+
* skipped unstable captures so continuous animations don't stop replay recording.
47+
*/
4448
const val MAX_UNSTABLE_CAPTURES_TO_SKIP = 1
4549
}
4650

0 commit comments

Comments
 (0)