ErrorReportActivity draws under the status bar on targetSdk 35 (forced edge-to-edge)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 76/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C++
- Estrelas
- 563
- Forks
- 144
- Merge médio
- 10h 45min
- PRs com merge (30d)
- 11
Preparar o ambiente
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NativeScript/android
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 38/100
NativeScript/android#2039 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
NativeScript/android#2024 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
NativeScript/android#2020 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 42/100
NativeScript/android#2019 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
NativeScript/android#1986 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de NativeScript/android
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
espressif/esp-matter#1867 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
cuAmpcorParameter.cpp (CPU pycuampcor) does not compile with libc++: EXIT_FAILURE is undeclaredAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
isce-framework/isce3#387 ·
-
[request] opencv/5.0.0Abertaupstream update
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
conan-io/conan-center-index#31055 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia