Status Update
Comments
dx...@gmail.com <dx...@gmail.com> #2
Please include a sample project that reproduces your issue.
jg...@google.com <jg...@google.com> #3
Sample project attached. Just add to plain project this dependencies allow to reproduce.
def emoji2_version = "1.1.0-beta01"
implementation "androidx.emoji2:emoji2:$emoji2_version"
def lifecycle_version = "2.5.0-alpha01"
implementation "androidx.lifecycle:lifecycle-process:$lifecycle_version"
dx...@gmail.com <dx...@gmail.com> #4
The reason may be related to 2.4.0
of lifecycle-process
as workaround.
jg...@google.com <jg...@google.com>
jg...@google.com <jg...@google.com> #5
Yes, this is due to this change, as well as the fact that EmojiCompatInitializer has a ProcessLifecycleInitializer as a dependency and also re-calls it, but in manual mode.
je...@google.com <je...@google.com>
ap...@google.com <ap...@google.com> #6
ProcessLifecycleInitializer
is expected to already be initialized (via the manifest provider
for App Startup) by the time that code runs - App Startup shouldn't be calling create
if that component has already been initialized, hence you shouldn't get any exception. We'll take a look on where things are breaking down though.
je...@google.com <je...@google.com> #7
Thanks for the answer.
As I understand EmojiCompatInitializer has ProcessLifecycleInitializer as a appInitializer.initializeComponent(ProcessLifecycleInitializer.class)
Maybe it would be more correct to create a bug in emoji-2, but let it be here.
je...@google.com <je...@google.com> #8
This issue isn't related to emoji2, it could be reproduced easily with the lifecycle-process
(2.4.0 -> 2.5.0-alpha01) only.
Description
* Using NestedScrollView with Fragment in item of ViewPager2.
* This is set in NestedScrollView: `app: layout_behavior =" @ string / appbar_scrolling_view_behavior "`
* An event may be taken in horizontal scrolling while vertical scrolling.
Thank you.