Merge "Prevent the screen reader box from unexpected scrolling in dream setting page." into tm-qpr-dev am: 34db15a008

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21517324

Change-Id: Ib3444fa954cdc2d6a4c179994f36963673b46492
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Darrell Shi
2023-03-17 16:13:40 +00:00
committed by Automerger Merge Worker

View File

@@ -224,6 +224,10 @@ public class DreamSettings extends DashboardFragment implements OnMainSwitchChan
mPreviewButton.setOnClickListener(v -> dreamBackend.preview(dreamBackend.getActiveDream())); mPreviewButton.setOnClickListener(v -> dreamBackend.preview(dreamBackend.getActiveDream()));
mRecyclerView = super.onCreateRecyclerView(inflater, parent, bundle); mRecyclerView = super.onCreateRecyclerView(inflater, parent, bundle);
// The enable/disable status change of the nested RecyclerView(Dream Picker) causes the
// focus moving. Make the RecyclerView unfocusable to prevent the unexpected scrolling when
// the focus changes in the TalkBack mode.
mRecyclerView.setFocusable(false);
updatePaddingForPreviewButton(); updatePaddingForPreviewButton();
return mRecyclerView; return mRecyclerView;
} }