Merge pull request #101 from cuu/master

bug fix in airplane mode
This commit is contained in:
GNU 2018-08-22 14:58:15 +08:00 committed by GitHub
commit 02a90d52ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,7 @@ class AirplanePage(Page):
self._PosY = 0 self._PosY = 0
self._DrawOnce = False self._DrawOnce = False
out = commands.getstatusoutput('sudo rfkill list | grep yes | cut -d " " -f3') out = commands.getstatusoutput('sudo rfkill list | grep yes | cut -d " " -f3')
if out[1] == "yes": if "yes" in out[1]:
self._Screen._TitleBar._InAirPlaneMode = True self._Screen._TitleBar._InAirPlaneMode = True
self._airwire_y = 50+43 self._airwire_y = 50+43
self._dialog_index = 1 self._dialog_index = 1