From f5950d4a931250edc14cbe2121528dfa33fb6c26 Mon Sep 17 00:00:00 2001 From: Aldrin Zigmund Velasco Date: Sun, 21 Apr 2024 01:16:06 +0800 Subject: [PATCH] fixed a bug causing TV interface to appear on phones --- android/app/build.gradle | 4 ++-- lib/pages/channelpage_iptv.dart | 2 +- lib/pages/channelpage_youtube.dart | 2 +- lib/services/update.dart | 2 +- metadata/en-US/changelogs/11.txt | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 metadata/en-US/changelogs/11.txt diff --git a/android/app/build.gradle b/android/app/build.gradle index 8f8f477..d6446c5 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -58,8 +58,8 @@ android { // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkVersion 20 targetSdkVersion 33 - versionCode 10 - versionName "2.0.1" + versionCode 11 + versionName "2.0.2" multiDexEnabled true } signingConfigs { diff --git a/lib/pages/channelpage_iptv.dart b/lib/pages/channelpage_iptv.dart index 86e1ce1..77c1529 100644 --- a/lib/pages/channelpage_iptv.dart +++ b/lib/pages/channelpage_iptv.dart @@ -65,7 +65,6 @@ class _ChannelPageIPTVState extends State { super.initState(); index = widget.index; storage = widget.storage; - isTV = widget.isTV; WakelockPlus.enable(); _setupVideoPlayerController(); } @@ -83,6 +82,7 @@ class _ChannelPageIPTVState extends State { @override Widget build(BuildContext context) { + isTV = widget.isTV; return Scaffold( appBar: (isTV) ? null diff --git a/lib/pages/channelpage_youtube.dart b/lib/pages/channelpage_youtube.dart index 7892121..e6339c9 100644 --- a/lib/pages/channelpage_youtube.dart +++ b/lib/pages/channelpage_youtube.dart @@ -33,7 +33,6 @@ class _ChannelPageYouTubeState extends State { super.initState(); index = widget.index; storageProvider = widget.storageProvider; - isTV = widget.isTV; WakelockPlus.enable(); } @@ -48,6 +47,7 @@ class _ChannelPageYouTubeState extends State { @override Widget build(BuildContext context) { + isTV = widget.isTV; return Scaffold( appBar: (isTV) ? null diff --git a/lib/services/update.dart b/lib/services/update.dart index b52d34b..5511bc7 100644 --- a/lib/services/update.dart +++ b/lib/services/update.dart @@ -16,7 +16,7 @@ class UpdateManager { } getUpdateMessage() { - return "Added compatibility to Google and Android TVs. Updated the Digilog TV channel list, thanks to our free, legal, and publicly available content provider - Free-TV/IPTV on GitHub."; + return "Fixed issue with Google and Android TV interface sometimes appearing on Android phones."; } removeUpdate(StorageProvider storage) async { diff --git a/metadata/en-US/changelogs/11.txt b/metadata/en-US/changelogs/11.txt new file mode 100644 index 0000000..ea3438c --- /dev/null +++ b/metadata/en-US/changelogs/11.txt @@ -0,0 +1 @@ +* Fixed a bug causing TV interface to appear on phones \ No newline at end of file