Status Update
Comments
wi...@google.com <wi...@google.com> #2
Hey hughesno1@, when do you add the onPreDrawListener to delay the rendering of activity? Mind providing us with a sample application?
[Deleted User] <[Deleted User]> #3
wi...@google.com <wi...@google.com> #4
[Deleted User] <[Deleted User]> #5
wi...@google.com <wi...@google.com> #6
Hi there,
Could you help confirm that whether this issue reproducible on android emulator? you can try with android 11 or lower.
the callstack
at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:771)
at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:7746)
at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:7938)
at android.widget.FrameLayout$LayoutParams.<init>(FrameLayout.java:439)
at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:370)
at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:368)
here doesn't seems align with AOSP.
If your app doesn't meet the same crash on emulator, maybe OEM has modify the framework code.
We can help forward this issue to them.
[Deleted User] <[Deleted User]> #7
Also I have tested it on different real devices such as Xiaomi (Android 11), Huawei (Android 9), Huawei (Android 12), Samsung (Android 8) and Samsung (Android 12). Bug is not reproducible on these devices.
But in devices where the manufacturer is OPPO or RealMe, I can reproduce this bug.
It is possible to prevent this crash by creating a file in layout/splash_screen_view.xml. In that case, app does not crash but a blank white screen is displayed as the splash screen.
wi...@google.com <wi...@google.com> #8
re...@google.com <re...@google.com> #9
Thank you for raising this. We are following up internally and will reply back with an update.
ne...@google.com <ne...@google.com> #10
Hi there, I use your code snippets to create a demo app but the crash was not able to be reproduced with my OPPO CPH2251(Android 12). Could you create a simple demo project and share with us?
re...@google.com <re...@google.com> #11
Following up - the bug you mentioned that this is similar to (
Description
Version used: 1.0.0
Devices/Android versions reproduced on: OPPO CPH1909, OPPO A5 2020, OPPO CPH2179, realme C2 ...
I found a similar issue:
Splash Screen API in AndroidX causes crash in OPPO and RealMe brand devices when app is launched by using the default application launcher. But when I click on a dynamic link, app is invoked by showing splash screen without any error.