Browse Source
- Create bitmap copy in ScreenCaptureService before passing to LongScreenshotCapture - Handle null bitmap.config with fallback to ARGB_8888 - Add proper bitmap cleanup in processBitmapAsync with finally block - Recycle bitmap copy in LongScreenshotCapture after processing - Clean up bitmap copy if capture fails This fixes the "Can't compress a recycled bitmap" error by ensuring the bitmap passed to LongScreenshotCapture is not recycled by the calling service before async processing completes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>feature/pgh-30-long-screenshot-capture
2 changed files with 15 additions and 3 deletions
Loading…
Reference in new issue