mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-11 03:51:31 +02:00
Android: Fix condition where we set grid span too early
This commit is contained in:
parent
8f5a58f8be
commit
e67788571a
@ -75,6 +75,11 @@ public final class PlatformGamesFragment extends Fragment implements PlatformGam
|
||||
@Override
|
||||
public void onGlobalLayout()
|
||||
{
|
||||
if (mBinding.getRoot().getMeasuredWidth() == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int columns = mBinding.getRoot().getMeasuredWidth() /
|
||||
requireContext().getResources().getDimensionPixelSize(R.dimen.card_width);
|
||||
if (columns == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user