diff --git a/AniStream/Adapters/ViewPagerAdapter.cs b/AniStream/Adapters/ViewPagerAdapter.cs index 8826226..0c3dfa7 100644 --- a/AniStream/Adapters/ViewPagerAdapter.cs +++ b/AniStream/Adapters/ViewPagerAdapter.cs @@ -23,7 +23,7 @@ public ViewPagerAdapter(FragmentManager fm) : base(fm) Fragments.Add(AnimeFragment.NewInstance(SearchFilter.NewSeason)); Fragments.Add(AnimeFragment.NewInstance(SearchFilter.LastUpdated)); break; - case AnimeSites.Zoro: + case AnimeSites.Aniwatch: Fragments.Add(AnimeFragment.NewInstance(SearchFilter.Popular)); Fragments.Add(AnimeFragment.NewInstance(SearchFilter.NewSeason)); Fragments.Add(AnimeFragment.NewInstance(SearchFilter.TopAiring)); diff --git a/AniStream/Fragments/AnimeFragment.cs b/AniStream/Fragments/AnimeFragment.cs index 8cd0501..b3e3049 100644 --- a/AniStream/Fragments/AnimeFragment.cs +++ b/AniStream/Fragments/AnimeFragment.cs @@ -121,7 +121,7 @@ or AnimeSites.AnimePahe SearchFilter.LastUpdated => await provider.GetLastUpdatedAsync(Page), _ => throw new NotImplementedException(), }, - Zoro provider => _searchFilter switch + Aniwatch provider => _searchFilter switch { SearchFilter.Popular => await provider.GetPopularAsync(Page), SearchFilter.NewSeason => await provider.GetRecentlyAddedAsync(Page), diff --git a/AniStream/MainActivity.cs b/AniStream/MainActivity.cs index d79a937..f3e884b 100644 --- a/AniStream/MainActivity.cs +++ b/AniStream/MainActivity.cs @@ -111,14 +111,6 @@ protected override async void OnCreate(Bundle? savedInstanceState) viewPager = FindViewById(Resource.Id.viewPager)!; appBarLayout = FindViewById(Resource.Id.appbar)!; - // Migration - var data = await SecureStorage.GetAsync("PlayerSettings"); - if (!string.IsNullOrEmpty(data)) - { - System.IO.File.WriteAllText(System.IO.Path.Combine(FileSystem.AppDataDirectory, "PlayerSettings.dat"), data); - SecureStorage.Remove("PlayerSettings"); - } - if (!WeebUtils.IsOnline()) { var linearLayout1 = FindViewById(Resource.Id.notvisiblelinearlayout)!; @@ -291,7 +283,7 @@ private void SetupViewPager() case AnimeSites.GogoAnime: bottomNavigationView.InflateMenu(Resource.Menu.bottommenu2); break; - case AnimeSites.Zoro: + case AnimeSites.Aniwatch: bottomNavigationView.InflateMenu(Resource.Menu.bottommenu4); break; case AnimeSites.AnimePahe: @@ -406,7 +398,7 @@ private async void SetupSources(IMenu menu) WeebUtils.AnimeSite = (AnimeSites)Convert.ToInt32(animeSiteStr); var gogoanime = menu.FindItem(Resource.Id.source_gogoanime); - var zoro = menu.FindItem(Resource.Id.source_zoro); + var aniwatch = menu.FindItem(Resource.Id.source_aniwatch); var animepahe = menu.FindItem(Resource.Id.source_animepahe); var nineanime = menu.FindItem(Resource.Id.source_nineanime); var otakudesu = menu.FindItem(Resource.Id.source_otakudesu); @@ -416,8 +408,8 @@ private async void SetupSources(IMenu menu) case AnimeSites.GogoAnime: gogoanime?.SetChecked(true); break; - case AnimeSites.Zoro: - zoro?.SetChecked(true); + case AnimeSites.Aniwatch: + aniwatch?.SetChecked(true); break; case AnimeSites.AnimePahe: animepahe?.SetChecked(true); @@ -475,8 +467,8 @@ private async void SaveSelectedSource(int id) if (id == Resource.Id.source_gogoanime) WeebUtils.AnimeSite = AnimeSites.GogoAnime; - else if (id == Resource.Id.source_zoro) - WeebUtils.AnimeSite = AnimeSites.Zoro; + else if (id == Resource.Id.source_aniwatch) + WeebUtils.AnimeSite = AnimeSites.Aniwatch; else if (id == Resource.Id.source_animepahe) WeebUtils.AnimeSite = AnimeSites.AnimePahe; else if (id == Resource.Id.source_nineanime) diff --git a/AniStream/Resources/menu/drawer.xml b/AniStream/Resources/menu/drawer.xml index 18dcd9e..a90d75b 100644 --- a/AniStream/Resources/menu/drawer.xml +++ b/AniStream/Resources/menu/drawer.xml @@ -8,9 +8,9 @@ android:titleCondensed="Gogoanime" android:title="Gogoanime" app:actionViewClass="android.widget.RadioButton" /> - - + + + + + + + + new Zoro(() => httpClient), + AnimeSites.Aniwatch => new Aniwatch(() => httpClient), AnimeSites.AnimePahe => new AnimePahe(() => httpClient), AnimeSites.NineAnime => new NineAnime(() => httpClient), AnimeSites.OtakuDesu => new OtakuDesu(() => httpClient),