Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27328] Android: Splash screen open animation sometimes stutters on cold start

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2019-08-21T11:00:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.1.1
ComponentsAndroid
Labelsandroid, engSchedule, launch, splash
ReporterJoshua Quick
AssigneeJoshua Quick
Created2019-08-10T02:56:16.000+0000
Updated2019-08-21T11:00:28.000+0000

Description

*Summary:* As of Android Q beta 4, the OS displays activity windows via a zoom-in animation on some devices such as the Pixel 3. Because of this new open animation, Titanium's splash screen might stutter during a cold start (but not subsequent startups) as shown by the attached "AndroidQ-Launch.gif" below. !AndroidQ-Launch.gif! This issue can happen on older Android OS versions as well, but is less likely to happen and difficult to reproduce. The attached "AndroidP-Launch.gif" shows this happening on Android P with a slide-up transition. !AndroidP-Launch.gif! *Notes:* * This does not happen with Android Q on a Pixel 2 device. (Does not do zoom-in animations.) * This stutter only happens when opening a window while the splash screen is still doing its open animation. (Can work-around by delaying opening the first window.) * This appears to be a bug on Google's end, but we should attempt to work-around it. *Steps to reproduce:*

Acquire a Pixel 3 device/emulator with Android Q beta 4 or newer.

Download kitchensink-v2 project. (Can be found [here](https://github.com/appcelerator/kitchensink-v2).)

Build and run on the Pixel 3.

Notice that the splash screen stutters while opening as shown in GIF above.

To re-test, "force-quit" the app and relaunch the app.

*Work-Around:* In your "app.js" or "alloy.js", delay opening the first window by about 100ms. Waiting for the splash screen open animation to end works-around the issue.

Attachments

FileDateSize
AndroidP-Launch.gif2019-08-12T19:52:13.000+00005945891
AndroidQ-Launch.gif2019-08-10T02:51:59.000+00004134439

Comments

  1. Joshua Quick 2019-08-13

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/11139 PR (8.1.x): https://github.com/appcelerator/titanium_mobile/pull/11140 PR (8.3.x): https://github.com/appcelerator/titanium_mobile/pull/11141
  2. Samir Mohammed 2019-08-20

    FR Passed for Master, 8_1_X and 8_3_X. Waiting on Jenkins builds
  3. Christopher Williams 2019-08-20

    Merged to master, 8_3_X and 8_1_X
  4. Samir Mohammed 2019-08-21

    Closing ticket fix verified in SDK version 8.2.0.v20190820104021, 8.1.1.v20190820143437 and 8.3.0.v20190820103430. Test and other information can be found at: PR (master): https://github.com/appcelerator/titanium_mobile/pull/11139 PR (8.1.x): https://github.com/appcelerator/titanium_mobile/pull/11140 PR (8.3.x): https://github.com/appcelerator/titanium_mobile/pull/11141

JSON Source