Project

General

Profile

« Previous | Next » 

Revision 617b7b66

Added by Leszek Koltunski almost 2 years ago

Unblock PreRender's scrambling & solving oonly AFTER we change screen to READ post-scrambling (otherwise it was possible to press the 'solve' button in the brief period between unblocking and switching screen because switching screen runs on the background UI thread)

View differences:

src/main/java/org/distorted/main/RubikObjectLibInterface.java
215 215
        {
216 216
        @Override
217 217
        public void run()
218
        {
219
        ScreenList.switchScreen( act, ScreenList.READ);
220
        }
218
          {
219
          ScreenList.switchScreen( act, ScreenList.READ);
220
          ObjectControl control = act.getControl();
221
          control.unblockEverything();
222
          }
221 223
        });
222 224
      }
223 225
    }

Also available in: Unified diff