on xenial help sign in
Missed one.
743c3c3Leo Arias
tests/autopilot/unity8/shell/emulators/hud.py+8−1
@@ -54,7 +54,14 @@ class Hud(UnityEmulatorBase, DragMixin):
54 except AssertionError:
54 except AssertionError:
55 raise
55 raise
56 finally:
56 finally:
57+ # XXX This ugly code is here just temporarily, waiting for uinput
58+ # improvements to land on autopilot so we don't have to access
59+ # device private internal attributes. --elopio - 2014-02-12
60+ try:
61+ pressed = self.touch._touch_finger is not None
62+ except AttributeError:
63+ pressed = self.touch.pressed
57− if self.touch.pressed:
64+ if pressed:
58 self.touch.release()
65 self.touch.release()
59
66
60 def dismiss(self):
67 def dismiss(self):