Skip to content

Commit 131bfbb

Browse files
committed
Don't send keys while the progress dialog is up.
1 parent 0403ad0 commit 131bfbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: android/src/name/boyle/chris/sgtpuzzles/SGTPuzzles.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ void save()
203203

204204
void gameViewResized()
205205
{
206+
if( ! gameRunning ) return;
206207
if( progress == null && gameView.w > 0 && gameView.h > 0 )
207208
resizeEvent(gameView.w, gameView.h);
208209
else
@@ -716,7 +717,7 @@ public void onWindowFocusChanged( boolean f )
716717

717718
void sendKey(int x, int y, int k)
718719
{
719-
if(! gameRunning) return;
720+
if(! gameRunning || progress != null) return;
720721
keyEvent(x, y, k);
721722
}
722723

0 commit comments

Comments
 (0)