From a223b6494ead6c1d1b8418321976ee00bc95e00b Mon Sep 17 00:00:00 2001 From: jerrry08 Date: Sat, 4 Nov 2023 19:05:25 -0400 Subject: [PATCH] Add features --- AniStream/Platforms/Android/MainActivity.cs | 1 + AniStream/Resources/Styles/Styles.xaml | 8 + AniStream/Utils/ProviderResolver.cs | 7 +- AniStream/ViewModels/EpisodeViewModel.cs | 63 +++- AniStream/ViewModels/HomeViewModel.cs | 315 +++++++++++------- .../PlatformMediaController.android.cs | 2 +- .../ViewModels/Videos/VideoPlayerViewModel.cs | 2 +- .../ViewModels/Videos/VideoSourceViewModel.cs | 116 +++---- AniStream/Views/Episodes/EpisodesTabView.xaml | 116 ++++++- AniStream/Views/SearchView.xaml | 2 +- .../Views/Templates/HomeTemplateView.xaml | 3 +- .../Views/Templates/HomeTemplateView.xaml.cs | 2 +- 12 files changed, 407 insertions(+), 230 deletions(-) diff --git a/AniStream/Platforms/Android/MainActivity.cs b/AniStream/Platforms/Android/MainActivity.cs index f006cbb..f1ae217 100644 --- a/AniStream/Platforms/Android/MainActivity.cs +++ b/AniStream/Platforms/Android/MainActivity.cs @@ -20,6 +20,7 @@ namespace AniStream; Theme = "@style/Maui.SplashTheme", MainLauncher = true, SupportsPictureInPicture = true, + ClearTaskOnLaunch = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode diff --git a/AniStream/Resources/Styles/Styles.xaml b/AniStream/Resources/Styles/Styles.xaml index 4f395c9..e29a054 100644 --- a/AniStream/Resources/Styles/Styles.xaml +++ b/AniStream/Resources/Styles/Styles.xaml @@ -94,6 +94,14 @@ + +