From a9049915f998fefdeed8b59b34ff50aa21b1d27e Mon Sep 17 00:00:00 2001 From: Anonymus Raccoon <32224410+AnonymusRaccoon@users.noreply.github.com> Date: Sun, 30 Jun 2019 21:11:50 +0200 Subject: [PATCH] Adding about section in the preferences with libraries's licenses. --- Opus/Code/UI/Adapter/LibrariesAdapter.cs | 36 + Opus/Code/UI/Fragments/AboutFragment.cs | 69 + Opus/Code/UI/Fragments/DownloadFragment.cs | 9 +- Opus/Code/UI/Fragments/OpenSourceViewer.cs | 63 + Opus/Code/UI/Fragments/Preferences.cs | 24 +- Opus/Opus.csproj | 60 +- Opus/Resources/Resource.Designer.cs | 1364 ++++++++++---------- Opus/Resources/layout/AboutPreferences.xml | 17 + Opus/Resources/layout/Preferences.xml | 2 +- Opus/Resources/values-es/strings.xml | 2 +- Opus/Resources/values-fr/strings.xml | 5 +- Opus/Resources/values/strings.xml | 5 +- Opus/packages.config | 18 +- 13 files changed, 942 insertions(+), 732 deletions(-) create mode 100644 Opus/Code/UI/Adapter/LibrariesAdapter.cs create mode 100644 Opus/Code/UI/Fragments/AboutFragment.cs create mode 100644 Opus/Code/UI/Fragments/OpenSourceViewer.cs create mode 100644 Opus/Resources/layout/AboutPreferences.xml diff --git a/Opus/Code/UI/Adapter/LibrariesAdapter.cs b/Opus/Code/UI/Adapter/LibrariesAdapter.cs new file mode 100644 index 0000000..c1e80d4 --- /dev/null +++ b/Opus/Code/UI/Adapter/LibrariesAdapter.cs @@ -0,0 +1,36 @@ +using Android.Content; +using Android.Views; +using Android.Widget; +using Opus.Fragments; +using System.Collections.Generic; + +namespace Opus.Adapter +{ + public class LibrariesAdapter : ArrayAdapter + { + public int selectedPosition; + + private readonly List libraries; + private LayoutInflater inflater; + + public LibrariesAdapter(Context context, int resource, List libraries) : base(context, resource, libraries) + { + this.libraries = libraries; + } + + public override View GetView(int position, View convertView, ViewGroup parent) + { + if (inflater == null) + { + inflater = Preferences.instance.LayoutInflater; + } + if (convertView == null) + { + convertView = inflater.Inflate(Android.Resource.Layout.SimpleListItem1, parent, false); + } + + convertView.FindViewById(Android.Resource.Id.Text1).Text = libraries[position]; + return convertView; + } + } +} \ No newline at end of file diff --git a/Opus/Code/UI/Fragments/AboutFragment.cs b/Opus/Code/UI/Fragments/AboutFragment.cs new file mode 100644 index 0000000..c6551d0 --- /dev/null +++ b/Opus/Code/UI/Fragments/AboutFragment.cs @@ -0,0 +1,69 @@ +using Android.Content; +using Android.Net; +using Android.OS; +using Android.Runtime; +using Android.Support.V7.Preferences; +using Android.Views; + +namespace Opus.Fragments +{ + [Register("Opus/Fragments/AboutFragment")] + public class AboutFragment : PreferenceFragmentCompat + { + public static AboutFragment instance; + public View view; + + public override void OnCreatePreferences(Bundle savedInstanceState, string rootKey) + { + instance = this; + SetPreferencesFromResource(Resource.Layout.AboutPreferences, rootKey); + + //OpenSource click + Preference openSource = PreferenceScreen.FindPreference("view_opensource"); + openSource.IconSpaceReserved = false; + openSource.PreferenceClick += (s, e) => + { + Preferences.instance.SupportFragmentManager.BeginTransaction().Replace(Android.Resource.Id.ListContainer, new OpenSourceViewer()).AddToBackStack(null).Commit(); + }; + + //Website click + Preference website = PreferenceScreen.FindPreference("website"); + website.IconSpaceReserved = false; + website.PreferenceClick += (s, e) => + { + Intent intent = new Intent(Intent.ActionView); + intent.SetData(Uri.Parse("https://www.raccoon-sdg.fr")); + StartActivity(intent); + }; + + //Github click + Preference github = PreferenceScreen.FindPreference("github"); + github.IconSpaceReserved = false; + github.PreferenceClick += (s, e) => + { + Intent intent = new Intent(Intent.ActionView); + intent.SetData(Uri.Parse("https://github.com/AnonymusRaccoon/Opus")); + StartActivity(intent); + }; + } + + public override void OnResume() + { + base.OnResume(); + instance = this; + } + + public override void OnDestroy() + { + base.OnDestroy(); + instance = null; + } + + public override void OnStop() + { + base.OnStop(); + if(OpenSourceViewer.instance == null) + Preferences.instance.SupportActionBar.Title = Preferences.instance.GetString(Resource.String.settings); + } + } +} \ No newline at end of file diff --git a/Opus/Code/UI/Fragments/DownloadFragment.cs b/Opus/Code/UI/Fragments/DownloadFragment.cs index af6c91e..85e97b8 100644 --- a/Opus/Code/UI/Fragments/DownloadFragment.cs +++ b/Opus/Code/UI/Fragments/DownloadFragment.cs @@ -201,14 +201,7 @@ namespace Opus.Fragments public override void OnStop() { base.OnStop(); - Preferences.instance.toolbar.Title = Preferences.instance.GetString(Resource.String.settings); - } - - public override void OnViewCreated(View view, Bundle savedInstanceState) - { - //if (MainActivity.Theme == 1) - // view.SetBackgroundColor(Color.Argb(225, 33, 33, 33)); - base.OnViewCreated(view, savedInstanceState); + Preferences.instance.SupportActionBar.Title = Preferences.instance.GetString(Resource.String.settings); } } } \ No newline at end of file diff --git a/Opus/Code/UI/Fragments/OpenSourceViewer.cs b/Opus/Code/UI/Fragments/OpenSourceViewer.cs new file mode 100644 index 0000000..d51225a --- /dev/null +++ b/Opus/Code/UI/Fragments/OpenSourceViewer.cs @@ -0,0 +1,63 @@ +using Android.Content; +using Android.Net; +using Android.OS; +using Android.Runtime; +using Android.Support.V4.App; +using Android.Widget; +using Opus.Adapter; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; + +namespace Opus.Fragments +{ + [Register("Opus/Fragments/OpenSourceViewer")] + public class OpenSourceViewer : ListFragment + { + public static OpenSourceViewer instance; + private bool isPaused = false; + private readonly ReadOnlyDictionary libraries = new ReadOnlyDictionary(new Dictionary + { + { "AngleSharp", "https://github.com/AngleSharp/AngleSharp/blob/master/LICENSE" }, { "Google.Apis", "https://aka.ms/deprecateLicenseUrl" }, { "Google.Apis.Auth", "https://aka.ms/deprecateLicenseUrl" }, { "Google.Apis.Core", "https://aka.ms/deprecateLicenseUrl" }, { "Google.Apis.YouTube.v3", "https://aka.ms/deprecateLicenseUrl" }, { "Karamunting.Android.AnderWeb.DiscreteSeekBar", "https://github.com/AnderWeb/discreteSeekBar/blob/master/LICENSE" }, { "Microsoft.CSharp", "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT" }, { "Microsoft.NETCore.Platforms", "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT" }, { "NETStandard.Library", "https://github.com/dotnet/standard/blob/master/LICENSE.TXT" }, { "Newtonsoft.Json", "https://licenses.nuget.org/MIT" }, { "PCLCrypto", "https://raw.githubusercontent.com/AArnott/PCLCrypto/313d8a787a/LICENSE" }, { "PInvoke.BCrypt", "https://raw.githubusercontent.com/AArnott/pinvoke/cf0176c42b/LICENSE" }, { "PInvoke.Kernel32", "https://raw.githubusercontent.com/AArnott/pinvoke/cf0176c42b/LICENSE" }, { "PInvoke.NCrypt", "https://raw.githubusercontent.com/AArnott/pinvoke/cf0176c42b/LICENSE" }, { "PInvoke.Windows.Core", "https://raw.githubusercontent.com/AArnott/pinvoke/cf0176c42b/LICENSE" }, { "sqlite-net-pcl", "https://raw.githubusercontent.com/praeclarum/sqlite-net/master/LICENSE.md" }, { "SQLitePCLRaw.bundle_green", "https://licenses.nuget.org/Apache-2.0" }, { "SQLitePCLRaw.core", "https://licenses.nuget.org/Apache-2.0" }, { "SQLitePCLRaw.lib.e_sqlite3.android", "https://licenses.nuget.org/Apache-2.0" }, { "SQLitePCLRaw.provider.e_sqlite3.android", "https://licenses.nuget.org/Apache-2.0" }, { "Square.Ok", "https://raw.githubusercontent.com/mattleibow/square-bindings/master/LICENSE" }, { "Square.OkIO", "https://raw.githubusercontent.com/mattleibow/square-bindings/master/LICENSE" }, { "Square.Picasso", "https://raw.githubusercontent.com/mattleibow/square-bindings/master/LICENSE" }, { "System.Collections", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.ComponentModel", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.ComponentModel.TypeConverter", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Console", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Diagnostics.Process", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.IO", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.IO.Compression", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.IO.Compression.ZipFile", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.IO.FileSystem", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.IO.FileSystem.Primitives", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Json", "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT" }, { "System.Linq", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Linq.Expressions", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Net.", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Net.Primitives", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Net.Requests", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Net.Sockets", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.ObjectModel", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Reflection", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Reflection.Extensions", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Reflection.Primitives", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Reflection.TypeExtensions", "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT" }, { "System.Resources.ResourceManager", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Runtime", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Runtime.CompilerServices.Unsafe", "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT" }, { "System.Runtime.Extensions", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Runtime.Handles", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Runtime.InteropServices", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Runtime.InteropServices.RuntimeInformation", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Runtime.Numerics", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Runtime.Serialization.Formatters", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Runtime.Serialization.Primitives", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Security.Claims", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Security.Cryptography.Encoding", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Security.Cryptography.Primitives", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Text.Encoding", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Text.Encoding.CodePages", "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT" }, { "System.Text.Encoding.Extensions", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Text.RegularExpressions", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Threading", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Threading.Tasks", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Threading.Timer", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Xml.ReaderWriter", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Xml.XDocument", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "System.Xml.XmlDocument", "http://go.microsoft.com/fwlink/?LinkId=329770" }, { "TagLib.Portable", "https://github.com/timheuer/taglib-sharp-portable/blob/master/LICENSE" }, { "Validation", "https://raw.githubusercontent.com/AArnott/Validation/912324149e/LICENSE.txt" }, { "Xam.Plugins.Android.ExoPlayer", "https://raw.githubusercontent.com/martijn00/ExoPlayerXamarin/develop/LICENSE.md" }, { "Xam.Plugins.Android.ExoPlayer.Core", "https://raw.githubusercontent.com/martijn00/ExoPlayerXamarin/develop/LICENSE.md" }, { "Xam.Plugins.Android.ExoPlayer.Dash", "https://raw.githubusercontent.com/martijn00/ExoPlayerXamarin/develop/LICENSE.md" }, { "Xam.Plugins.Android.ExoPlayer.Hls", "https://raw.githubusercontent.com/martijn00/ExoPlayerXamarin/develop/LICENSE.md" }, { "Xam.Plugins.Android.ExoPlayer.SmoothStreaming", "https://raw.githubusercontent.com/martijn00/ExoPlayerXamarin/develop/LICENSE.md" }, { "Xam.Plugins.Android.ExoPlayer.UI", "https://raw.githubusercontent.com/martijn00/ExoPlayerXamarin/develop/LICENSE.md" }, { "Xamarin.Android.Arch.Core.Common", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Arch.Core.Runtime", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Arch.Lifecycle.Common", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Arch.Lifecycle.LiveData", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Arch.Lifecycle.LiveData.Core", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Arch.Lifecycle.Runtime", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Arch.Lifecycle.ViewModel", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Animated.Vector.Drawable", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Annotations", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.AsyncLayoutInflater", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Collections", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Compat", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.CoordinaterLayout", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Core.UI", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Core.Utils", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.CursorAdapter", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.CustomView", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Design", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.DocumentFile", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.DrawerLayout", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Fragment", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Interpolator", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Loader", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.LocalBroadcastManager", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Media.Compat", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Print", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.SlidingPaneLayout", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.SwipeRefreshLayout", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Transition", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.v4", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.v7.AppCompat", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.v7.CardView", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.v7.MediaRouter", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.v7.Palette", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.v7.Preference", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.v7.RecyclerView", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.Vector.Drawable", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.VersionedParcelable", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Android.Support.ViewPager", "https://go.microsoft.com/fwlink/?linkid=865381" }, { "Xamarin.Build.Download", "https://go.microsoft.com/fwlink/?linkid=864965" }, { "Xamarin.GooglePlayServices.Auth", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Auth.Api.Phone", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Auth.Base", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Base", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Basement", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Cast", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Cast.Framework", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Flags", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Oss.Licenses", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "Xamarin.GooglePlayServices.Tasks", "https://go.microsoft.com/fwlink/?linkid=865373" }, { "YoutubeExplode", "https://licenses.nuget.org/LGPL-3.0-only" } + }); + + + public override void OnActivityCreated(Bundle savedInstanceState) + { + instance = this; + base.OnActivityCreated(savedInstanceState); + Preferences.instance.SupportActionBar.Title = GetString(Resource.String.opensource); + //ListView.Divider = null; + ListView.TextFilterEnabled = true; + ListView.DividerHeight = 0; + ListAdapter = new LibrariesAdapter(Preferences.instance, 0, libraries.Keys.ToList()); + ListView.ItemClick += (_, e) => + { + isPaused = true; + Intent intent = new Intent(Intent.ActionView); + intent.SetData(Uri.Parse(libraries.ElementAt(e.Position).Value)); + StartActivity(intent); + }; + } + + public override void OnResume() + { + base.OnResume(); + instance = this; + isPaused = false; + } + + public override void OnDestroy() + { + base.OnDestroy(); + instance = null; + } + + public override void OnStop() + { + base.OnStop(); + if(!isPaused) + Preferences.instance.SupportActionBar.Title = GetString(Resource.String.about); + } + } +} \ No newline at end of file diff --git a/Opus/Code/UI/Fragments/Preferences.cs b/Opus/Code/UI/Fragments/Preferences.cs index daca2a3..8d7f587 100644 --- a/Opus/Code/UI/Fragments/Preferences.cs +++ b/Opus/Code/UI/Fragments/Preferences.cs @@ -28,7 +28,6 @@ namespace Opus.Fragments public class Preferences : AppCompatActivity { public static Preferences instance; - public Toolbar toolbar; private bool? PermissionGot; protected override void OnCreate(Bundle savedInstanceState) @@ -36,18 +35,17 @@ namespace Opus.Fragments base.OnCreate(savedInstanceState); MainActivity.LoadTheme(this); SetContentView(Resource.Layout.PreferenceRoot); - toolbar = FindViewById(Resource.Id.toolbar); - SetSupportActionBar(toolbar); + SetSupportActionBar(FindViewById(Resource.Id.toolbar)); instance = this; - toolbar.NavigationClick += (sender, e) => + FindViewById(Resource.Id.toolbar).NavigationClick += (sender, e) => { - if (DownloadFragment.instance == null) + if (DownloadFragment.instance == null && AboutFragment.instance == null && OpenSourceViewer.instance == null) Finish(); else if (DownloadFragment.instance != null) - { DownloadFolderBack(); - } + else + SupportFragmentManager.PopBackStack(); }; SupportFragmentManager.BeginTransaction().Replace(Android.Resource.Id.ListContainer, new PreferencesFragment()).Commit(); @@ -137,6 +135,7 @@ namespace Opus.Fragments protected override void OnResume() { base.OnResume(); + instance = this; } } @@ -215,6 +214,7 @@ namespace Opus.Fragments versionPreference.Summary = "v" + version + (beta ? "-Beta" : ""); versionPreference.IconSpaceReserved = false; + versionPreference.PreferenceClick += About; //Account Preference accountPreference = PreferenceScreen.FindPreference("account"); @@ -260,7 +260,7 @@ namespace Opus.Fragments if(await Preferences.instance.GetReadPermission()) { Preferences.instance.SupportFragmentManager.BeginTransaction().Replace(Android.Resource.Id.ListContainer, DownloadFragment.NewInstance(path)).AddToBackStack(null).Commit(); - Preferences.instance.toolbar.Title = "Download Location"; + Preferences.instance.SupportActionBar.Title = "Download Location"; } } #endregion @@ -343,5 +343,13 @@ namespace Opus.Fragments MainActivity.CheckForUpdate(Preferences.instance, true); } #endregion + + #region About + private void About(object sender, Preference.PreferenceClickEventArgs e) + { + Preferences.instance.SupportFragmentManager.BeginTransaction().Replace(Android.Resource.Id.ListContainer, new AboutFragment()).AddToBackStack(null).Commit(); + Preferences.instance.SupportActionBar.Title = GetString(Resource.String.about); + } + #endregion } } \ No newline at end of file diff --git a/Opus/Opus.csproj b/Opus/Opus.csproj index eb64507..cfd6208 100644 --- a/Opus/Opus.csproj +++ b/Opus/Opus.csproj @@ -293,31 +293,31 @@ ..\packages\Xamarin.Android.Support.ViewPager.28.0.0.1\lib\monoandroid90\Xamarin.Android.Support.ViewPager.dll - ..\packages\Xamarin.GooglePlayServices.Auth.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Auth.dll + ..\packages\Xamarin.GooglePlayServices.Auth.71.1600.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Auth.dll - ..\packages\Xamarin.GooglePlayServices.Auth.Api.Phone.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Auth.Api.Phone.dll + ..\packages\Xamarin.GooglePlayServices.Auth.Api.Phone.71.1600.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Auth.Api.Phone.dll - ..\packages\Xamarin.GooglePlayServices.Auth.Base.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Auth.Base.dll + ..\packages\Xamarin.GooglePlayServices.Auth.Base.71.1600.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Auth.Base.dll - ..\packages\Xamarin.GooglePlayServices.Base.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Base.dll + ..\packages\Xamarin.GooglePlayServices.Base.71.1610.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Base.dll - ..\packages\Xamarin.GooglePlayServices.Basement.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Basement.dll + ..\packages\Xamarin.GooglePlayServices.Basement.71.1620.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Basement.dll - ..\packages\Xamarin.GooglePlayServices.Cast.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Cast.dll + ..\packages\Xamarin.GooglePlayServices.Cast.71.1602.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Cast.dll - ..\packages\Xamarin.GooglePlayServices.Cast.Framework.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Cast.Framework.dll + ..\packages\Xamarin.GooglePlayServices.Cast.Framework.71.1602.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Cast.Framework.dll - ..\packages\Xamarin.GooglePlayServices.Flags.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Flags.dll + ..\packages\Xamarin.GooglePlayServices.Flags.71.1601.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Flags.dll - ..\packages\Xamarin.GooglePlayServices.Tasks.70.1501.0-preview2\lib\MonoAndroid80\Xamarin.GooglePlayServices.Tasks.dll + ..\packages\Xamarin.GooglePlayServices.Tasks.71.1601.0-preview9\lib\monoandroid90\Xamarin.GooglePlayServices.Tasks.dll ..\packages\YoutubeExplode.4.7.4\lib\netstandard2.0\YoutubeExplode.dll @@ -332,7 +332,10 @@ + + + @@ -891,6 +894,9 @@ + + + @@ -907,15 +913,6 @@ - - - - - - - - - @@ -955,17 +952,17 @@ + + + + + + + + + - - - - - - - - - @@ -1005,6 +1002,15 @@ + + + + + + + + + Annuler diff --git a/Opus/Resources/values/strings.xml b/Opus/Resources/values/strings.xml index 0035b7d..5db9cb4 100644 --- a/Opus/Resources/values/strings.xml +++ b/Opus/Resources/values/strings.xml @@ -191,12 +191,15 @@ Black Theme Others Check for updates - Version + About Not logged in Logged in as LOG IN LOG OUT Login behaviors has been disabled for now due to a restriction from google. + Open source licenses + App website + App github Undo diff --git a/Opus/packages.config b/Opus/packages.config index 6ad6151..43e9143 100644 --- a/Opus/packages.config +++ b/Opus/packages.config @@ -116,14 +116,14 @@ - - - - - - - - - + + + + + + + + + \ No newline at end of file