Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Camera Preview not aligning correctly

Open
#12 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

The payload names no source files, so start by finding where the app sets the camera preview size and aspect ratio. Reproduce on a 16:9 Android device or emulator, switch the preview between 4:3, 1:1, 16:9 and full, and compare how each one fits the screen borders. Done means 4:3 and 1:1 previews fill the screen as 16:9 and full already do, and the fix is confirmed on a device with the reporter's screen ratio.

Written by the indexing model from the issue text.

Description

bug device/software specific needs reproduction
Checklist
  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
Affected app version

5.7.2

Affected Android/Custom ROM version

LineageOS 20

Affected device model

Nokia 6.1 2018 PL2 TA-1043

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug
  1. have a Nokia 6.1 2018 with LineageOS 20 (1920:1080 screen ratio, so 16:9)
  2. install Simple Camera 5.7.2 from F-Droid repo
  3. open the app and see the bug on 4:3 and 1:1 settings
Expected behavior
  1. Camera preview aligning to screen borders
  2. Camera preview form ratio matching the configured value
Actual behavior
  1. Preview of 4:3 and 1:1 ratio are incorrectly displayed, something seems to prevent the preview from aligning to the border and using the space correctly
  2. 16:9 and full work as expected (though they logically are the same on my 16:9 screen)
Screenshots/Screen recordings
Screenshot_20240218-205454_Camera Screenshot_20240218-205502_Camera
Additional information
  • taking pictures works fine
  • device is rooted via Magisk
Dominant language
Kotlin
Stars
473
Forks
56
Avg merge
2d 7h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FossifyOrg/Camera

All issues in FossifyOrg/Camera

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.