diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesFragment.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesFragment.java index 527b7d659d..d26476f1a6 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesFragment.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/platform/PlatformGamesFragment.java @@ -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)