[BUG] Statusbar too large in landscape on Android API 35 device

Aperta
#3,328 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, csharp
Ambito
mobile

Direzione di ricerca

Start with StatusBarBehavior and compare the API 35 status_bar_height path with the windowinsets path described in issue 3170 and pull request 3180. Run the linked reproduction project on an Android API 35 landscape device and verify that the status bar height is correct without changing API 36 behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug unverified
Is there an existing issue for this?
  • I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior

There was a fix for this issue https://github.com/CommunityToolkit/Maui/issues/3170 but it doesn't seem to have fixed the problem for some devices. We have an API 35 device that runs in landscape and the statusbar is too large.
Looking a the commit (https://github.com/CommunityToolkit/Maui/pull/3180/) and testing the two methods of getting the status bar height. The one that's used for API 36 (windowinsets) looks to give the correct height on this particular API 35 device - i.e. half of the height given by the method that is being used for API 35 devices ("status_bar_height"). On the device the statusbar looks to be twice the height it should be with the StatusBarBehavior.
Is it possible that the windowinsets method works on API 35 devices?

Expected Behavior

Statusbar should be the correct height.

Steps To Reproduce
  1. Run the app in the linked repo
Link to public reproduction project repository

https://github.com/markusroessler/MauiCommunityToolkitStatusBarBug

Environment
- .NET MAUI CommunityToolkit: 14.2
- OS: Android  API 35
- .NET MAUI:10.0.80
Anything else?

No response

Lingua principale
C#
Stelle
2.7k
Fork
502
Merge medio
11h 10m
PR unite (30g)
50

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CommunityToolkit/Maui

Tutte le issue di CommunityToolkit/Maui

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.