+ if is_maliit_process_running(): + configure_osk_settings() + restart_maliit_with_testability() + return input.Keyboard.create('OSK') + else: + return input.Keyboard.create() + + +def restart_maliit_with_testability(): + """Restart maliit-server with testability enabled.""" + if is_maliit_process_running():
The if..running is redundant given that restart only occurs if that's already the case. Also the function name inherently requires that.
+ # This is needed to work around launchpad.net/bugs/1248913 + time.sleep(5)
Please use https so bug links can actually be opened.
« Back to merge proposal
+ if is_maliit_ process_ running( ): osk_settings( ) maliit_ with_testabilit y() create( 'OSK') create( ) maliit_ with_testabilit y(): process_ running( ):
+ configure_
+ restart_
+ return input.Keyboard.
+ else:
+ return input.Keyboard.
+
+
+def restart_
+ """Restart maliit-server with testability enabled."""
+ if is_maliit_
The if..running is redundant given that restart only occurs if that's already the case. Also the function name inherently requires that.
+ # This is needed to work around launchpad. net/bugs/ 1248913
+ time.sleep(5)
Please use https so bug links can actually be opened.