From 385c0e246a3bfe58f8dd21caec35bb33e9494fca Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Thu, 21 Sep 2023 19:32:10 +0700 Subject: [PATCH 1/3] build: use correct version code The user won't notice it :shhh: we're fine, continue as normal. --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 3710ef57..6f6c7502 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager publish_to: 'none' -version: 1.10.1+101000001 +version: 1.10.1+101000100 environment: sdk: '>=3.0.0 <4.0.0' From c3d345de80f4c877418aadc2ac9cb69987093aa2 Mon Sep 17 00:00:00 2001 From: Benjamin <73490201+BenjaminHalko@users.noreply.github.com> Date: Fri, 22 Sep 2023 07:05:13 -0700 Subject: [PATCH 2/3] fix: force disable material you on Android 11 and below (#1293) --- lib/ui/views/navigation/navigation_viewmodel.dart | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/ui/views/navigation/navigation_viewmodel.dart b/lib/ui/views/navigation/navigation_viewmodel.dart index 8e36a630..a2a0e4bb 100644 --- a/lib/ui/views/navigation/navigation_viewmodel.dart +++ b/lib/ui/views/navigation/navigation_viewmodel.dart @@ -1,4 +1,5 @@ // ignore_for_file: use_build_context_synchronously +import 'package:device_info_plus/device_info_plus.dart'; import 'package:dynamic_themes/dynamic_themes.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -30,9 +31,23 @@ class NavigationViewModel extends IndexTrackingViewModel { ); } + final dynamicTheme = DynamicTheme.of(context)!; if (prefs.getInt('themeMode') == null) { await prefs.setInt('themeMode', 0); + await dynamicTheme.setTheme(0); } + + // Force disable Material You on Android 11 and below + if (dynamicTheme.themeId.isOdd) { + const int ANDROID_12_SDK_VERSION = 31; + final AndroidDeviceInfo info = await DeviceInfoPlugin().androidInfo; + if (info.version.sdkInt < ANDROID_12_SDK_VERSION) { + await prefs.setInt('themeMode', 0); + await prefs.setBool('useDynamicTheme', false); + await dynamicTheme.setTheme(0); + } + } + SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle( From 68e9f0f7c1ef10275b58eed06ab92482acfeced6 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Fri, 22 Sep 2023 22:05:31 +0700 Subject: [PATCH 3/3] build: bump version `1.10.2` !! --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 6f6c7502..6efc6f6d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager publish_to: 'none' -version: 1.10.1+101000100 +version: 1.10.2+101000200 environment: sdk: '>=3.0.0 <4.0.0'