Camera preview vertical even if the phone is held horizonally

Aberta
#62 0 comentários 1 reação 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
android, kotlin
Domínio
mobile

Direção de pesquisa

The payload names no source file, so start by searching the Kotlin code for where the camera preview's orientation or rotation is set, and check how it differs between photo and video modes. The bug depends on a specific Samsung Galaxy S5 and a custom ROM, so an emulator may not reproduce it, and the maintainers may need a device to verify a fix. Done means the preview stays aligned with the device orientation in both modes after the tilt sequence in the steps.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

1.0.1

Affected Android/Custom ROM version

Divestos 18.1

Affected device model

Samsung Galaxy S5

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

On my Samsung S5, the camera preview does strange things: When you flip the phone to horizontal, the preview suddenly switches to vertical, so you'd have to bend your head sideways to see the motive in its correct alignment.

If you click on "video" the preview switches to landscape, as it should be. But tilt the phone to vertical and back, and the problem reappears.

Now switch to photo mode: Problem is fixed, preview is as it should be. Tilt the phone to vertical and back to horizontal, and the problem is there again.

Repeat.

Expected behavior

Obvioulsy, when you hold the phone horizontally, you expect the phone to show a horizontal preview.

Actual behavior

The photos made when holding the phone horizontally are actually landscape, so that's how it should be. It's just the preview that's broken. Tried to play with the available option but found nothing that fixed it.

Screenshots/Screen recordings

No response

Additional information

No response

Linguagem predominante
Kotlin
Estrelas
473
Forks
56
Merge médio
9h 4min
PRs com merge (30d)
11

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de FossifyOrg/Camera

Todas as issues de FossifyOrg/Camera

Issues semelhantes

Mais issues de Kotlin

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.