commit f3f3cb09c32fb67f786335571b23a4285775d01b
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Wed Feb 2 13:01:37 2022 +0100

    Another bugfix: it would crash if the new downloaded object creates a new row in the objects popup. Correct that.

diff --git a/src/main/java/org/distorted/screens/RubikScreenPlay.java b/src/main/java/org/distorted/screens/RubikScreenPlay.java
index b5ccb75b..9692c12f 100644
--- a/src/main/java/org/distorted/screens/RubikScreenPlay.java
+++ b/src/main/java/org/distorted/screens/RubikScreenPlay.java
@@ -703,6 +703,10 @@ public class RubikScreenPlay extends RubikScreenBase implements RubikNetwork.Upd
   public void recreatePopup()
     {
     mObjectPopup = null;
+
+    int numObjects = RubikObjectList.getNumObjects();
+    mRowCount = (numObjects + NUM_COLUMNS-1) / NUM_COLUMNS;
+    mColCount = NUM_COLUMNS;
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
