android / android/camera-samples

[100% Reproducible] Camera2 Preview Appears Distorted Under Multi-window Mode

Open
#391 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
5.5k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Device model: Galaxy S9 SM-G960U
Android version: 10
Android build number: QP1A. 190711.020.G960USQU9FUE1

Steps to reproduce (on any device running Android 7+):

1. Open camera 2 sample app in multi-window mode and open another app in parallel.
2. Drag the middle border to adjust the window size.
3. Notice the camera preview become distorted.

![bug](https://user-images.githubusercontent.com/22717320/126542004-603f6e26-dc55-417d-8f3f-35f6d44d4037.gif)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the distortion in the Camera2 sample app on Android 7+ while resizing it in multi-window mode. Trace how the camera preview responds to window-size changes; done means the preview retains correct proportions instead of becoming distorted.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.