public static void OpenNowPlaying()
        {
            UiBlockerUtility.BlockNavigation();

            ModalSheetUtility.Show(CurrentSheet);

            App.SupressBackEvent += HardwareButtonsOnBackPressed;

            ScreenTimeoutHelper.OnNowPlayingOpened();
            Insights.Track("Opened Now Playing");
            IsActive = true;
        }
        public static void CloseNowPlaying()
        {
            if (!IsActive)
            {
                return;
            }

            ModalSheetUtility.Hide(CurrentSheet);

            ScreenTimeoutHelper.OnNowPlayingClosed();
            Insights.Track("Closed Now Playing");
        }
Пример #3
0
        private async void RootFrame_FirstNavigated(object sender, NavigationEventArgs e)
        {
            RootFrame.Navigated -= RootFrame_FirstNavigated;

            ScreenTimeoutHelper.OnLaunched();

            ApplicationView.GetForCurrentView().SetDesiredBoundsMode(ApplicationViewBoundsMode.UseCoreWindow);
            ApplicationView.GetForCurrentView().VisibleBoundsChanged += OnVisibleBoundsChanged;
            OnVisibleBoundsChanged(null, null);

            await ReviewReminderAsync();

            CollectionHelper.RequiresCollectionToLoad(
                async() =>
            {
                // downloading missing artwork and match mp3 songs where they haven't been
                CollectionHelper.MatchSongs();
                await CollectionHelper.DownloadAlbumsArtworkAsync();
                await CollectionHelper.DownloadArtistsArtworkAsync();

                await CollectionHelper.CloudSync();
            },
                false);
        }