Status Update
Comments
ma...@google.com <ma...@google.com>
ch...@google.com <ch...@google.com> #2
That's working as expected. Let's consult with Javier about his thoughts.
ch...@google.com <ch...@google.com> #3
Did we get any input from Javier for this?
ch...@google.com <ch...@google.com> #4
The current implementation after the fix is aligned with the foundation API AnchoredDraggable
- I think it makes sense to provide an optional parameter for devs to provide the initial anchor to use, as it's hard to provide a reasonable default.
Let me know if you have different thoughts. : )
ch...@google.com <ch...@google.com>
ma...@slice.com <ma...@slice.com> #5
I think it makes sense to provide an optional parameter for devs to provide the initial anchor to use, as it's hard to provide a reasonable default.
That sounds reasonable to me. Is there a separate bug for that or should I file one?
One thing that I think will be weird is that the size of the panes can come from that anchor or from PaneScaffoldDirective defaultPanePreferredWidth (possibly influenced by the hinge?). In an ideal world, I think we would have the sizes all come from anchors, but that wouldn't work today with three panes visible. I'll add a note to the doc on this.
ma...@google.com <ma...@google.com>
ni...@datadoghq.com <ni...@datadoghq.com> #6
We don't have a separate bug for that but it's already being supported via:
rememberPaneExpansionState(
...
initialAnchoredIndex = i,
)
You raised a very good point about having parallel ways to set up pane sizes.
To me it's sort of reasonable as there are actually referring to different use cases and have different priorities -
- Hinge policies always have the highest priority.
- Pane expansion (and its anchors) are associated with layout splits, but less with the "roles" of the panes that occupy those splits.
Modifier.preferredWidth
always has the lowest priority - more like a fallback default.
I guess we can have more detailed explanation in the doc if this can be confusing?
ap...@google.com <ap...@google.com> #7
Oh, it's in the remember call, perfect!
Yeah, it seems reasonable debating about the use cases, but I worry if it's reasonable for a developer who doesn't consider all that and just wants to show two panes? It's also even more nuanced since 2 only applies for two panes (e.g., if your app shows two panes in portrait on a Samsung Ultra tablet and three panes in landscape). Maybe in the kdoc we should have something similar to what you listed here and in DAC we can provide more context around these.
cc...@google.com <cc...@google.com>
cc...@google.com <cc...@google.com> #8
Yeah that sounds good to me. I plan to have some time to refine our kdoc and samples no matter what. Let's maybe work on this in the upcoming alpha/beta period.
ap...@google.com <ap...@google.com> #9
Project: platform/frameworks/support
Branch: androidx-main
Author: Chris Craik <
Link:
Improve tag/listener update safety on API 24+
Expand for full commit details
Improve tag/listener update safety on API 24+
Improve JankStats API 24 impl to reduce thread hops and simplify
delegate iteration/adding/removal. This brings the API 24 impl to be
much closer to the API 16 implementation.
Also ensures that delegates and window frame metrics available
listeners are consistently set on main thread.
Test: JankStatsTest
Fixes: 311218678
Change-Id: I2ab7c892ae114708f3cd8e80f180ab73e32b9d11
Files:
- M
metrics/metrics-performance/src/main/java/androidx/metrics/performance/JankStatsApi24Impl.kt
Hash: f185f92ddcc005dfaa62ab4ed2816faabddc2288
Date: Wed Feb 26 15:03:31 2025
yo...@flipkart.com <yo...@flipkart.com> #10
Any ETA on the new release?
na...@google.com <na...@google.com> #11
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.metrics:metrics-performance:1.0.0-beta02
yo...@flipkart.com <yo...@flipkart.com> #12
cc...@google.com <cc...@google.com> #13
This fix was released yesterday with androidx.metrics:metrics-performance:1.0.0-beta02
, see
Please try it out and let us know if it doesn't address the problem.
Description
androidx.metrics
module used:metrics-performance
androidx.metrics
version used:1.0.0-alpha04
Devices/Android versions reproduced on: Android 13 (Galaxy S21 FE 5G)
We have a crash in here , with the following stacktrace:
androidx.metrics:metrics-performance:1.0.0-alpha04
reported by our customer