We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b143ae commit 35dadfeCopy full SHA for 35dadfe
1 file changed
sdk/python/packages/flet/src/flet/controls/page.py
@@ -1367,7 +1367,7 @@ async def get_device_info(self) -> Optional[DeviceInfo]:
1367
1368
if self.web:
1369
return from_dict(WebDeviceInfo, info)
1370
- elif self.platform == PagePlatform.ANDROID or self.platform == PagePlatform.ANDROID_TV:
+ elif self.platform in [PagePlatform.ANDROID, PagePlatform.ANDROID_TV]:
1371
return from_dict(AndroidDeviceInfo, info)
1372
elif self.platform == PagePlatform.IOS:
1373
return from_dict(IosDeviceInfo, info)
0 commit comments