Assigned
Status Update
Comments
z2...@gmail.com <z2...@gmail.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.
Description
Version used: androidx.emoji:emoji:1.1.0-rc01
Devices/Android versions reproduced on: Xiaomi Redmi Note 7 (Android version - "9 PKQ1.180904.001", MIUI version - "MIUI Global 11.0.7 | Stable")
Hello.
It seems that AndroidX emoji support library does not work as expected with either custom font like Avenir or letter spacing. In both cases emoji span does not seem to allocate enough space to render correctly. The same behavior was reproduced for the last stable version (1.0.0), for `EmojiEditText` component and using `EmojiCompat.get().process(charSequence)` with subsequent setting of the returned text to a regular TextView.
Self-containing example with the reported issue:
Screenshot:
Best regards,
Andrii