Commit 8ab5ee5c authored by Peter Kotwicz's avatar Peter Kotwicz Committed by Commit Bot

[Android] Remove setHasFixedSize() in LanguagePickerView

This CL removes RecyclerView#setHasFixedSize() call in order to make
InvalidSetHasFixedSizeDetector lint check
https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev/recyclerview/recyclerview-lint/src/main/java/androidx/recyclerview/lint/InvalidSetHasFixedSizeDetector.kt
pass.

The lint check was introduced in RecyclerView version 1.2.0 This
purpose of this CL is to prepare for rolling the Chromium RecyclerView
dependency to version 1.2.0

BUG=1064277

Change-Id: Ife3d2d688b97826749c2a640b789374e4ed5649e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2559556Reviewed-by: default avatarShakti Sahu <shaktisahu@chromium.org>
Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#831112}
parent ea4ca412
......@@ -41,7 +41,6 @@ class LanguagePickerView {
mPropertyModelChangeProcessor =
PropertyModelChangeProcessor.create(mModel, mView, LanguagePickerView::bind);
RecyclerView recyclerView = mView.findViewById(R.id.recycler_view);
recyclerView.setHasFixedSize(true);
LinearLayoutManager layoutManager =
new LinearLayoutManager(mView.getContext(), LinearLayoutManager.VERTICAL, false);
recyclerView.setLayoutManager(layoutManager);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment