Assigned
Status Update
Comments
wa...@google.com <wa...@google.com>
li...@google.com <li...@google.com> #2
This actually has nothing to do with NavHostFragment, but is the behavior of NavController's setGraph().
When you call navController.setGraph(R.navigation.navigation_graph), it stores that ID and will restore that ID automatically.
If you were to instead use:
NavInflater navInflater = new NavInflater(this, navController.getNavigatorProvider());
navController.setGraph(navInflater.inflate(R.navigation.navigation_graph));
Then NavController would not restore the graph itself and the call to restoreState() you point out would only restore the back stack state, etc. but would wait for you to call setGraph again.
You're right that the inconsistency between the two setGraph methods is concerning. We'll take a look.
When you call navController.setGraph(R.navigation.navigation_graph), it stores that ID and will restore that ID automatically.
If you were to instead use:
NavInflater navInflater = new NavInflater(this, navController.getNavigatorProvider());
navController.setGraph(navInflater.inflate(R.navigation.navigation_graph));
Then NavController would not restore the graph itself and the call to restoreState() you point out would only restore the back stack state, etc. but would wait for you to call setGraph again.
You're right that the inconsistency between the two setGraph methods is concerning. We'll take a look.
su...@gmail.com <su...@gmail.com> #3
Turns out, we already had a tracking bug for this issue, will follow up on that other one.
li...@google.com <li...@google.com> #4
Thank you for promptly replying to my report. You are right that the issue you've just mentioned is similar to mine. I shall continue observing the progress over there.
su...@gmail.com <su...@gmail.com> #5
How does use pick the skin-tone. I attempted to long press the emoji and doesn't show an option to pick the skin tone?
li...@google.com <li...@google.com> #6
Which emoji did you choose to long press? Only the emojis with the arrow at the bottom right have the skintone variants.
su...@gmail.com <su...@gmail.com> #7
Okay I see it now - FWIW - not very intuitive - but as with any UI - YMMV. Perhaps we will have to show some kind of first run experience hint, to teach users(!!)
But now I see this toast "Don't use EmojiPicker inside a Popup" -- let me look at your examples and see what alternatives I have!!
Description
Component used: androidx.emoji2:emoji2-emojipicker:1.4.0 Version used:1.4.0 Devices/Android versions reproduced on:
Came across this article -https://android-developers.googleblog.com/2023/08/introducing-jetpack-emoji-picker.html
How to do I assign skin-tone to the emoji created by emoji picker?
Documentation for emoji picker mentions that one can assign skin-tone to the emojis, but there doesn't appear to be API to set it.
I took a cursory look through , couldn't find way to set the skin tone.
Note: I opened issue here before I found this Jetpack(android) -> Emoji path in issue reporter, you can close other issue?