Remove setHasFixedSize as it is not needed

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2021-09-30 07:07:21 +02:00
parent 75924576d6
commit 68caad4b39
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 0 additions and 2 deletions

View file

@ -87,7 +87,6 @@ public class SendFilesDialog extends BottomSheetDialogFragment {
SendButtonAdapter.ClickListener clickListener = setupSendButtonClickListener(sendIntent);
RecyclerView sendButtonsView = view.findViewById(R.id.send_button_recycler_view);
sendButtonsView.setHasFixedSize(true);
sendButtonsView.setLayoutManager(new GridLayoutManager(getActivity(), 4));
sendButtonsView.setAdapter(new SendButtonAdapter(sendButtonDataList, clickListener));

View file

@ -165,7 +165,6 @@ public class SendShareDialog extends BottomSheetDialogFragment {
SendButtonAdapter.ClickListener clickListener = setupSendButtonClickListener(sendIntent);
RecyclerView sendButtonsView = view.findViewById(R.id.send_button_recycler_view);
sendButtonsView.setHasFixedSize(true);
sendButtonsView.setLayoutManager(new GridLayoutManager(getActivity(), 4));
sendButtonsView.setAdapter(new SendButtonAdapter(sendButtonDataList, clickListener));