From 13d85fca213bfe0a85bd6ecf477e4e698da5df3a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 26 Jun 2016 23:16:31 +0200 Subject: [PATCH] Update Memory.java Moving the "tile.select()" to below the switch case block to fix the viewing issue when re-selecting the first of the two previously selected tiles. --- src/main/java/org/androidsoft/games/memory/tux/Memory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/androidsoft/games/memory/tux/Memory.java b/src/main/java/org/androidsoft/games/memory/tux/Memory.java index 051fe68..eaf9925 100644 --- a/src/main/java/org/androidsoft/games/memory/tux/Memory.java +++ b/src/main/java/org/androidsoft/games/memory/tux/Memory.java @@ -157,7 +157,6 @@ void onPosition(int position) } mLastPosition = position; Tile tile = mList.get(position); - tile.select(); int sound = tile.mResId % mSounds.length; SoundManager.instance().playSound( sound ); @@ -192,6 +191,7 @@ void onPosition(int position) mT1 = tile; break; } + tile.select(); mSelectedCount++; mMoveCount++; updateView();