Status Update
Comments
ti...@google.com <ti...@google.com> #2
What steps are needed to reproduce this issue? Frequency of occurrence?
Which Android build are you using? (e.g. OPP1.170223.012)
Which device did you use to reproduce this issue?
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report and screenshot to google drive and share the folder to android-bugreport@google.com, then share the link here.
qu...@gmail.com <qu...@gmail.com> #3
Android version: T
Problem recurrence: Execute Antutu, and pay attention to the XML processing score
Phenomenon: replace the "name expected" in the KXmlParser.java file on the ssi side with a variable. After modification, the XML processing score of Angora Rabbit improved significantly.
Modify to: static final private String NAME_ EXPECTED = "name expected"; And use NAME_ EXPECTED for subsequent "name expected"
Thanks!
ma...@google.com <ma...@google.com> #5
bugreport has upload. Thankds!
lp...@google.com <lp...@google.com> #6
We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
qu...@gmail.com <qu...@gmail.com> #7
Okay, thanks!
ma...@gmail.com <ma...@gmail.com> #8
Can you tell us if you have the link to the benchmark tests and the scores BEFORE and AFTER applying this change?
an...@google.com <an...@google.com> #9
About 45000 before modification
About 49000 after modification
Thanks!
qu...@gmail.com <qu...@gmail.com> #10
Thanks for the above information, we have shared this with our product and engineering team and will update this issue with more information as it becomes available.
an...@google.com <an...@google.com> #11
Thanks again for the feedback! Our product and engineering teams have evaluated the request and responded:
However, I can't find the source codes of the Antutu benchmarks.
Here are my suggestions, and you can consider one of the following options:
-
Can you provide the source code of benchmark to reproduce the result? Particularly, why do you mention that it improves the performance of JSON parsing? It would be great that we can reproduce the result and runs the benchmark continuously if the benchmark result is important
-
If you know how to change the code, you can consider uploading a patch to AOSP directly at
http://r.android.com/ . We will review it and consider accepting it.
qu...@gmail.com <qu...@gmail.com> #12
Please provide the requested information to proceed further. Unfortunately the issue will be closed within 7 days if there is no further update.
an...@google.com <an...@google.com> #13
We are closing this issue since we didn't receive a response. If you are still facing this problem, please open a new issue and add the relevant information along with reference to this issue.
qu...@gmail.com <qu...@gmail.com> #14
Alright. I guess this would hit two issues at the same time then. Thank you!
il...@google.com <il...@google.com> #15
Note that if you want to pad in all screens, you should passing the padding directly to NavHost
rather than manually to each screen:
) { padding ->
NavHost(navController, startDestination = FIRST_SCREEN, Modifier.padding(padding)) {
composable(FIRST_SCREEN) {
MyScreen(Color.Blue) {
navController.navigate(SECOND_SCREEN)
}
}
composable(SECOND_SCREEN) {
MyScreen(Color.Red) {
navController.navigate(FIRST_SCREEN)
}
}
}
}
}
This was made possible in
ap...@google.com <ap...@google.com> #16
Branch: androidx-main
commit 294e5e2a1f2933cb927f9ad2bdd7763923295f49
Author: Jeremy Woods <jbwoods@google.com>
Date: Mon Jun 21 14:15:54 2021
Override equals in NavGraph and NavDestinations
Instead of relying on the default equals() behavior that requires
NavGraphs and NavDestinations to be the exact instance to be
considered equal, we should specifically define equals to be objects
with the same values, even if they instances are not exactly the same.
RelNote: "`NavGraph` and `NavDestination`s now override the equals method so
two objects with the same values will be considered equal."
Test: NavGraphTest and NavDestinationAndroidTest
Bug: 175392262
Change-Id: I166eb54122cabc12cc569daea8eefcf8e0ec95a7
M navigation/navigation-common/src/androidTest/java/androidx/navigation/NavDestinationAndroidTest.kt
M navigation/navigation-common/src/main/java/androidx/navigation/NavDeepLink.kt
M navigation/navigation-common/src/main/java/androidx/navigation/NavDestination.kt
M navigation/navigation-common/src/main/java/androidx/navigation/NavGraph.kt
M navigation/navigation-common/src/test/java/androidx/navigation/NavGraphTest.kt
M navigation/navigation-dynamic-features-fragment/src/main/java/androidx/navigation/dynamicfeatures/fragment/DynamicFragmentNavigator.kt
M navigation/navigation-dynamic-features-runtime/src/main/java/androidx/navigation/dynamicfeatures/DynamicActivityNavigator.kt
M navigation/navigation-dynamic-features-runtime/src/main/java/androidx/navigation/dynamicfeatures/DynamicGraphNavigator.kt
M navigation/navigation-dynamic-features-runtime/src/main/java/androidx/navigation/dynamicfeatures/DynamicIncludeGraphNavigator.kt
M navigation/navigation-fragment/src/main/java/androidx/navigation/fragment/DialogFragmentNavigator.kt
M navigation/navigation-fragment/src/main/java/androidx/navigation/fragment/FragmentNavigator.kt
M navigation/navigation-runtime/src/main/java/androidx/navigation/ActivityNavigator.kt
ap...@google.com <ap...@google.com> #17
Branch: androidx-main
commit 5e187e759d673ea9c45d7fafe8e98260fe090bd4
Author: Jeremy Woods <jbwoods@google.com>
Date: Wed Jun 23 13:30:16 2021
Allow the NavGraph to be changed in NavHost
Since NavGraph now implements its own equals based on the data in the
graph rather than the instance, we can stop always remembering the
NavGraph and allow it to be changed on recompose.
RelNote: "You can now make changes to the graph of a NavHost. Graphs
with the same startDestination and destinations in the graph will be
considered equal and will not clear the navController back stack."
Test: setSameGraph
Bug: 175392262
Change-Id: I0b8dbcea4186232c3280c4a43be11e4fafcc6ce3
M navigation/navigation-common/src/main/java/androidx/navigation/NavBackStackEntry.kt
M navigation/navigation-compose/src/androidTest/java/androidx/navigation/compose/NavHostTest.kt
M navigation/navigation-compose/src/main/java/androidx/navigation/compose/NavHost.kt
M navigation/navigation-runtime/src/main/java/androidx/navigation/NavController.kt
jb...@google.com <jb...@google.com> #18
This has been fixed internally and will be part of the Navigation 2.4.0-alpha05
release.
Description
Jetpack Compose release version: 1.0.0-alpha08 Android Studio Build: Android Studio Arctic Fox | 2020.3.1 Canary 2
BottomBar no longer updates Scaffold's contentPadding whenever bottomBar changes "visibility".
Here is the sample code to reproduce: