From 23faa6d19c2cd42fd2d48bba00ed7b30356ef116 Mon Sep 17 00:00:00 2001 From: Zukero Date: Mon, 15 Jan 2018 11:55:40 +0100 Subject: [PATCH] Fix mis-clicks around the "flee" buttons (and all of the Combat UI) triggering an attack. You are now allowed to use fat fingers. --- AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CombatView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CombatView.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CombatView.java index 1cd009f3b..7f965af46 100644 --- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CombatView.java +++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/view/CombatView.java @@ -69,6 +69,8 @@ public final class CombatView extends RelativeLayout implements CombatSelectionL setFocusable(false); inflate(context, R.layout.combatview, this); + //Prevents mis-taps from registering as main area taps by going through the combat view. + findViewById(R.id.combatview_fixedarea).setClickable(true); // findViewById(R.id.combatview_fixedarea).setBackgroundResource(R.drawable.ui_gradientshape_translucent); // this.setBackgroundResource(R.drawable.ui_gradientshape_translucent);