From: Neil Date: Fri, 19 Apr 2013 14:29:17 +0000 (+0200) Subject: 'Fix' crash bug on android X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=dca884ac4e118edce6d28ca589f645317509ba06;p=erdslangetjie.git 'Fix' crash bug on android --- diff --git a/erdslangetjie/__main__.py b/erdslangetjie/__main__.py index 362bded..885885a 100644 --- a/erdslangetjie/__main__.py +++ b/erdslangetjie/__main__.py @@ -162,7 +162,8 @@ class GameWindow(RelativeLayout): self.add_widget(self.nemesis_tile) def _closed(self): - self.keyboard.unbind(on_key_down=self._on_key_down) + if platform() != 'android': + self.keyboard.unbind(on_key_down=self._on_key_down) def _on_key_down(self, keyboard, keycode, text, modifiers): direction = None