on xenial help sign in
Missed one.
commit743c3c38b3db115d0f6bd855e5c694089ba14f98 authorLeo Arias <leo.arias@canonical.com> dateWed 12 Feb 2014, 22:16 (13 years ago) parent15d8c4b
1 file changed+8−1
tests/autopilot/unity8/shell/emulators/hud.py+8−1
tests/autopilot/unity8/shell/emulators/hud.py+8−1
@@ -54,7 +54,14 @@ class Hud(UnityEmulatorBase, DragMixin):
5454 except AssertionError:
5555 raise
5656 finally:
57− if self.touch.pressed:
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
64+ if pressed:
5865 self.touch.release()
5966
6067 def dismiss(self):