ErrorReportActivity draws under the status bar on targetSdk 35 (forced edge-to-edge)
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 76/100
Piste de recherche
Start with framework/app/src/debug/res/layout/error_activity.xml and framework/app/src/debug/java/com/tns/ErrorReportActivity.java, then follow ErrorReport.buildUI(). Reproduce the crash screen on an API 35 emulator and inspect the existing window setup. Done means the errorException banner is fully below the status bar while the debug crash screen still renders correctly.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Environment
- CLI: 9.x
- Android Runtime: @nativescript/android 9.1.1 (also verified unchanged in 9.1.2-next.2026-09-22)
- Device: Android 15+ (API 35)
Describe the bug
The debug crash screen (com.tns.ErrorReportActivity) renders its top error banner under the OS status bar when the app targets SDK 35, making the first line of the error message unreadable.
Android 15 forces edge-to-edge for apps with targetSdkVersion 35, so the activity's window draws behind the status bar. The screen has never handled window insets:
framework/app/src/debug/res/layout/error_activity.xmlpinserrorException(the red messageTextView) to the top of the parentRelativeLayoutwith onlypaddingVertical=10dp— noandroid:fitsSystemWindows, no inset margin.framework/app/src/debug/java/com/tns/ErrorReportActivity.javasets a hardcodedTheme_AppCompat_NoActionBarandErrorReport.buildUI()callssetContentViewwith noWindowCompat/OnApplyWindowInsetsListenerhandling.
To Reproduce
ns run androidon an API 35 emulator/device (template already setstargetSdkVersion 35)- Throw an uncaught JS exception (e.g.
throw new Error('...')on startup) - The crash screen's first line is obscured by the status bar
Expected behavior
The errorException banner is offset below the status bar.
Possible fix
Add android:fitsSystemWindows="true" to the root RelativeLayout in error_activity.xml, or apply a ViewCompat.setOnApplyWindowInsetsListener in ErrorReport.buildUI() that pads the content by the statusBars inset.
Related: #1833 tracks the same root cause for normal app content, but ErrorReportActivity is a separate plain AppCompatActivity and won't inherit a fix applied to NativeScriptActivity's content view.
- Langage dominant
- C++
- Étoiles
- 563
- Forks
- 144
- Merge moyen
- 10 h 45 min
- PR mergées (30 j)
- 11
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NativeScript/android
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
NativeScript/android#2039 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
NativeScript/android#2024 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
NativeScript/android#2020 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 42/100
NativeScript/android#2019 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
NativeScript/android#1986 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de NativeScript/android
Issues similaires
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 84/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
ROCm/rocm-libraries#12703 ·
Les mainteneurs répondent en général sous 2 jours
-
bug
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
isl-org/Open3D#7585 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
Feature request
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
qbittorrent/qBittorrent#24975 ·
Les mainteneurs répondent en général sous 3 jours