Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28578] Android: New splash screens show app icon wrapper incorrectly

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2021-11-10T11:16:55.000+0000
Updated2021-11-13T06:49:38.000+0000

Description

This was noted by some of our users. The app icon itself is properly centered, but the wrapper / shadow remains at the top left. I wonder if this is a Google- or Titanium issue. The users have a Xiaomi device and run on Android 11. We cannot reproduce this on our Pixel 5 device.

Attachments

FileDateSize
WhatsApp Image 2021-11-10 at 12.14.59.jpeg2021-11-10T11:16:38.000+000027406

Comments

  1. Joshua Quick 2021-11-13

    [~hknoechel], I can't figure out how to reproduce this. I tried it with your Lambus app's adaptive icon and it worked fine on Android 8, 11, and 12. I also re-ran our hyperloop example project which uses an adaptive icon [here](https://github.com/appcelerator/hyperloop-examples/blob/master/app/platform/android/res/mipmap-anydpi-v26/ic_launcher_round.xml) and it works fine too... although it sets the "background" to a solid color which would probably work-around the issue anyways. I'm not sure what we can do on the Titanium side. We already correctly "center" an adaptive icon in the splash as can be seen below... https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/res/drawable-v26/titanium_splash_adaptive_icon_background.xml#L7 I don't have a Xiaomi device to test with. Even if I did, all we can do is attempt to find a work-around for what looks like a Xiaomi bug. Is it wrongly applying an "elevation" by default? I don't know.
  2. Joshua Quick 2021-11-13

    If you're able to reproduce this issue, then try removing the "android:roundIcon" attribute from your "tiapp.xml" to see if it's the adaptive icon that is the cause of this drop-shadow issue on the Xiaomi device. The splash will use your normal icon instead via the following splash layout. https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/res/drawable-v23/titanium_splash_icon_background.xml

JSON Source