Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Hi,
When using
isEdgeItemsCenteringEnabled
and setting the initial position withscrollToPosition()
, theWearableRecyclerView
jumps to the top.In
onCreateView()
oronViewCreated()
:In
onViewCreated()
:It's caused by
WearableRecyclerView.setupCenteredPadding()
wheregetFocusedChild()
returnsnull
:Component used: androidx.wear:wear
Version used: 1.2.0
Devices/Android versions reproduced on: Wear OS 3.2 (Emulator), Wear OS 2.33 (Carlyle HR 2214)