From f8201c81fc2deba95383c2390ca6b089c484453b Mon Sep 17 00:00:00 2001 From: bl1nch <130155870+bl1nch@users.noreply.github.com> Date: Fri, 19 Jun 2026 14:56:57 +0600 Subject: [PATCH 1/3] Support Android TV in device info retrieval --- sdk/python/packages/flet/src/flet/controls/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/packages/flet/src/flet/controls/page.py b/sdk/python/packages/flet/src/flet/controls/page.py index 977ec72f04..c445de5cc8 100644 --- a/sdk/python/packages/flet/src/flet/controls/page.py +++ b/sdk/python/packages/flet/src/flet/controls/page.py @@ -1386,7 +1386,7 @@ async def get_device_info(self) -> Optional[DeviceInfo]: if self.web: return from_dict(WebDeviceInfo, info) - elif self.platform == PagePlatform.ANDROID: + elif self.platform == PagePlatform.ANDROID or self.platform == PagePlatform.ANDROID_TV: return from_dict(AndroidDeviceInfo, info) elif self.platform == PagePlatform.IOS: return from_dict(IosDeviceInfo, info) From 70b0d00a45afa5ba3b0e2a933ee6f2da20786d67 Mon Sep 17 00:00:00 2001 From: bl1nch <130155870+bl1nch@users.noreply.github.com> Date: Sat, 20 Jun 2026 01:21:49 +0600 Subject: [PATCH 2/3] Simplify platform check for Android devices --- sdk/python/packages/flet/src/flet/controls/page.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/packages/flet/src/flet/controls/page.py b/sdk/python/packages/flet/src/flet/controls/page.py index c445de5cc8..fb97c00fc9 100644 --- a/sdk/python/packages/flet/src/flet/controls/page.py +++ b/sdk/python/packages/flet/src/flet/controls/page.py @@ -1386,7 +1386,7 @@ async def get_device_info(self) -> Optional[DeviceInfo]: if self.web: return from_dict(WebDeviceInfo, info) - elif self.platform == PagePlatform.ANDROID or self.platform == PagePlatform.ANDROID_TV: + elif self.platform in [PagePlatform.ANDROID, PagePlatform.ANDROID_TV]: return from_dict(AndroidDeviceInfo, info) elif self.platform == PagePlatform.IOS: return from_dict(IosDeviceInfo, info) From 9bcbc9f9c520e788749ee20bf23979e16dc5a176 Mon Sep 17 00:00:00 2001 From: bl1nch <130155870+bl1nch@users.noreply.github.com> Date: Mon, 22 Jun 2026 10:00:00 +0600 Subject: [PATCH 3/3] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35380e6d0f..6267cd0360 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ * Fix `flet build apk` failing at `mergeDebugNativeLibs` with `N files found with path 'lib//libc++_shared.so'` when an app combines `serious_python_android` with another Flutter plugin that also bundles the NDK C++ runtime ([#6570](https://github.com/flet-dev/flet/issues/6570), [#6571](https://github.com/flet-dev/flet/pull/6571)) by @ndonkoHenri. * Specify `handler` signatures in `subscribe` and `subscribe_topic` methods of `PubSubClient` for better type checking ([#6549](https://github.com/flet-dev/flet/pull/6564)) by @Iaw4tch * Fix `FilePicker.pick_files()` on web for slow network shares or slow machines: pass `cancel_upload_on_window_blur=False` to prevent valid file selections from being reported as cancelled when the browser window loses focus during file picking ([#771](https://github.com/flet-dev/flet/issues/771), [#6573](https://github.com/flet-dev/flet/pull/6573)) by @ndonkoHenri. +* Support `PagePlatform.ANDROID_TV` in `Page.get_device_info()` retrieval ([#6604](https://github.com/flet-dev/flet/pull/6604)) by @bl1nch. ### Documentation