diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-27 18:16:37 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-27 18:16:37 +0100 |
commit | bc2d8fa1da02037d0b9a2361f394f19e494c8cec (patch) | |
tree | 3ac5f8f2af6f528e6c0cab51b95837ecffb8fc2d /same-android/src/main/java/com/orbekk/same/GameView.java | |
parent | f7d27ef6204bd7ea96c657fa5399db8e16cb8705 (diff) |
Use DelayedOperation on Android.
BUGZ
Diffstat (limited to 'same-android/src/main/java/com/orbekk/same/GameView.java')
-rw-r--r-- | same-android/src/main/java/com/orbekk/same/GameView.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/same-android/src/main/java/com/orbekk/same/GameView.java b/same-android/src/main/java/com/orbekk/same/GameView.java index 527d3da..d9a8052 100644 --- a/same-android/src/main/java/com/orbekk/same/GameView.java +++ b/same-android/src/main/java/com/orbekk/same/GameView.java @@ -51,11 +51,7 @@ public class GameView extends SurfaceView implements SurfaceHolder.Callback { player_.posX = 0.5f; player_.posY = 0.5f; player.setOnChangeListener(this); - try { - player.set(player_); - } catch (UpdateConflict e) { - e.printStackTrace(); - } + player.set(player_); } public void setSize(int width, int height) { @@ -91,12 +87,7 @@ public class GameView extends SurfaceView implements SurfaceHolder.Callback { Player newPlayer = new Player(); newPlayer.posX = x / width; newPlayer.posY = y / width; - try { - player.set(newPlayer); - } catch (UpdateConflict e) { - Toast.makeText(context, "Failed to update position.", - Toast.LENGTH_SHORT).show(); - } + player.set(newPlayer); } @Override |