ErrorReportActivity draws under the status bar on targetSdk 35 (forced edge-to-edge)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 76/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C++
- Sterne
- 563
- Forks
- 144
- Ø Merge
- 10 Std. 45 Min.
- Gemergte PRs (30 T.)
- 11
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus NativeScript/android
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 38/100
NativeScript/android#2039 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
NativeScript/android#2024 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
NativeScript/android#2020 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 42/100
NativeScript/android#2019 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
NativeScript/android#1986 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in NativeScript/android
Ähnliche Issues
-
bug
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
isl-org/Open3D#7585 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Unconfirmed bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
luanti-org/luanti#17605 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
area: config area: firmware priority: P2 - medium size: S type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Mizithra/ActiveTerrain#16 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
grumpycoders/pcsx-redux#2171 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 2 Tagen