public static void NavigateToArtist(Activity context, long artistId, Tuple <string, View> transitionViews)
        {
            var      transaction = ((AppCompatActivity)context).SupportFragmentManager.BeginTransaction();
            Fragment fragment    = null;

            if (transitionViews != null && PreferencesUtility.GetInstance(context).GetAnimations())
            {
                var changeImage = TransitionInflater.From(context)
                                  .InflateTransition(Resource.Transition.image_transform);
                transaction.AddSharedElement(transitionViews.Item2, transitionViews.Item1);
                // fragment =
                fragment.SharedElementEnterTransition = changeImage;
            }
            else
            {
                transaction.SetCustomAnimations(Resource.Animation.activity_fade_in,
                                                Resource.Animation.activity_fade_out, Resource.Animation.activity_fade_in,
                                                Resource.Animation.activity_fade_out);
                // fragment =
            }

            transaction.Hide(
                ((AppCompatActivity)context).SupportFragmentManager.FindFragmentById(Resource.Id.fragment_container));
            transaction.Add(Resource.Id.fragment_container, fragment);
            transaction.AddToBackStack(null).Commit();
        }
        public static void NavigateToNowPlaying(Activity context)
        {
            var intent = new Intent(context, typeof(NowPlayingActivity));

            if (!PreferencesUtility.GetInstance(context).GetSystemAnimations())
            {
                intent.SetFlags(ActivityFlags.NoAnimation);
            }
            context.StartActivity(intent);
        }
 public static PreferencesUtility GetInstance(Context context) => _instance ?? (_instance = new PreferencesUtility(context.ApplicationContext));