feat: Android pixel density settings.#373
Merged
abelonogov-ld merged 10 commits intomainfrom Feb 17, 2026
Merged
Conversation
* andrey/fix-padding: fix padding in dom so scrollbar doesn't appear
...ty-android/lib/src/main/kotlin/com/launchdarkly/observability/replay/capture/CaptureEvent.kt
Outdated
Show resolved
Hide resolved
Vadman97
approved these changes
Feb 17, 2026
Merged
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 -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added
scaleoptions with default value 1 which equivalent of 160DPI to reduce size of payloads and match with iOSPractically it means that image dimension will shrink in 2.5 times
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.scalesetting (default1.0f, nullable to disable) and threads it throughReplayInstrumentationinto 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
CaptureEventdimensions now reflect the post-scale bitmap size; touch coordinates emitted byInteractionSourceare 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.