'Fix' crash bug on android
authorNeil <neil@dip.sun.ac.za>
Fri, 19 Apr 2013 14:29:17 +0000 (16:29 +0200)
committerNeil <neil@dip.sun.ac.za>
Fri, 19 Apr 2013 14:29:17 +0000 (16:29 +0200)
erdslangetjie/__main__.py

index 362bded7dd84ffe240d2982c8e2ce918f839d0cd..885885ae7dfc4ba5e3eb78bbf03ae506b5ee17fe 100644 (file)
@@ -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