Skip to content

Comments

feat: Android pixel density settings.#373

Merged
abelonogov-ld merged 10 commits intomainfrom
andrey/pixeldensity
Feb 17, 2026
Merged

feat: Android pixel density settings.#373
abelonogov-ld merged 10 commits intomainfrom
andrey/pixeldensity

Conversation

@abelonogov-ld
Copy link
Contributor

@abelonogov-ld abelonogov-ld commented Feb 17, 2026

Summary

Added scale options with default value 1 which equivalent of 160DPI to reduce size of payloads and match with iOS
Practically it means that image dimension will shrink in 2.5 times

image

Note

Medium Risk
Touches core session replay data generation (image sizing, mask placement, and interaction coordinates), so incorrect scaling could misalign replays or affect payload sizes across devices.

Overview
Adds a new ReplayOptions.scale setting (default 1.0f, nullable to disable) and threads it through ReplayInstrumentation into both screenshot capture and interaction tracking.

Captures are now rendered into scaled bitmaps (via PixelCopy/canvas scaling), window compositing offsets and mask drawing are scaled consistently, and emitted CaptureEvent dimensions now reflect the post-scale bitmap size; touch coordinates emitted by InteractionSource are similarly scaled, with an added guard for invalid pointer indices.

Written by Cursor Bugbot for commit 01d8edd. This will update automatically on new commits. Configure here.

@abelonogov-ld abelonogov-ld requested a review from a team as a code owner February 17, 2026 20:06
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@abelonogov-ld abelonogov-ld merged commit 58a3a7b into main Feb 17, 2026
26 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/pixeldensity branch February 17, 2026 22:14
abelonogov-ld pushed a commit that referenced this pull request Feb 17, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-observability-android: 0.26.0</summary>

##
[0.26.0](launchdarkly-observability-android-0.25.2...launchdarkly-observability-android-0.26.0)
(2026-02-17)


### Features

* Android pixel density settings.
([#373](#373))
([58a3a7b](58a3a7b))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Automated version/changelog bump with no functional code changes shown
in this PR.
> 
> **Overview**
> Updates the `@launchdarkly/observability-android` package release from
`0.25.2` to `0.26.0` (manifest + `gradle.properties`).
> 
> Adds the `0.26.0` changelog entry noting the new *Android pixel
density settings* feature.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
5b30f4a. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants