protected async override void OnNavigatedTo(NavigationEventArgs e) { Window.Current.CoreWindow.KeyDown += (sender, args) => GlobalPageKeyDown?.Invoke(sender, args); if (RoamingSettingsHelper.GetSetting <bool>("IsFirstTime", true)) { string releaseNotes = "FIXES:\r\n\r\n" + "Fix play on tap for all touch devices.\n" + "Fixed all crashes.\r\n\r\n" + "NEW THINGS:\r\n\r\n" + "Removed enter to full screen on startup.\n" + "Removed back button from shortcuts.\n"; await SharedLogic.NotificationManager.ShowMessageBoxAsync(releaseNotes, "What's new in v2.4.0"); RoamingSettingsHelper.SaveSetting("IsFirstTime", false); } if (e.Parameter is StorageFile) { Messenger.Instance.NotifyColleagues(MessageTypes.MsgExecuteCmd, new List <object> { e.Parameter, 0.0, true, 50.0 }); } base.OnNavigatedTo(e); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { Window.Current.CoreWindow.KeyDown += (sender, args) => GlobalPageKeyDown?.Invoke(sender, args); if (RoamingSettingsHelper.GetSetting <bool>("IsFirstTime", true)) { string releaseNotes = "𝐖𝐡𝐚𝐭'𝐬 𝐅𝐢𝐱𝐞𝐝:\n\n" + "• Fixed issue where library import took too much time.\n" + "• Fixed issue where many album arts were not loaded.\n" + "• Fixed other bugs.\n\n" + "𝐖𝐡𝐚𝐭'𝐬 𝐍𝐞𝐰:\n\n" + "• Added ability to ignore DRM-Protected songs. (𝑒𝑥𝑝𝑟𝑖𝑚𝑒𝑛𝑡𝑎𝑙)\n" + "• Added sorting by tracknumber for album songs.\n"; await SharedLogic.NotificationManager.ShowMessageBoxAsync(releaseNotes, "What's new in v2.6.2"); RoamingSettingsHelper.SaveSetting("IsFirstTime", false); } if (e.Parameter is StorageFile) { Messenger.Instance.NotifyColleagues(MessageTypes.MsgExecuteCmd, new List <object> { e.Parameter, 0.0, true, 50.0 }); } base.OnNavigatedTo(e); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { Window.Current.CoreWindow.KeyDown += (sender, args) => GlobalPageKeyDown?.Invoke(sender, args); if (RoamingSettingsHelper.GetSetting <bool>("IsFirstTime", true)) { string releaseNotes = "FIXES:\r\n\r\n" + "Fixed 2 random crashes.\n" + "Fixed invisible jumplist issue when in sort/grouped mode.\n" + "Fixed empty album issue.\n" + "Fixed issue with auto loading of library at startup.\n" + "Fixed issue where song wasn't played from external speakers/headphones.\n" + "NEW THINGS:\r\n\r\n" + "Added support for German Translation (thanks to Armin).\n" + "Added backward navigation support for mobiles.\n" + "IMPROVEMENTS:\r\n\r\n" + "Core improvements (shuffle and other things).\n" + "Icon was improved.\n"; await SharedLogic.NotificationManager.ShowMessageBoxAsync(releaseNotes, "What's new in v2.6.0"); RoamingSettingsHelper.SaveSetting("IsFirstTime", false); } if (e.Parameter is StorageFile) { Messenger.Instance.NotifyColleagues(MessageTypes.MsgExecuteCmd, new List <object> { e.Parameter, 0.0, true, 50.0 }); } base.OnNavigatedTo(e); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { Window.Current.CoreWindow.KeyDown += (sender, args) => GlobalPageKeyDown?.Invoke(sender, args); if (RoamingSettingsHelper.GetSetting <bool>("IsFirstTime", true)) { string releaseNotes = "FIXES:\r\n\r\n" + "We fixed the startup crash.\n" + "Fixed crash when changing theme.\n" + "Fixed crash when play songs from an album.\n" + "Fixed other various bugs and crashes.\r\n\r\n" + "NEW THINGS:\r\n\r\n" + "Added 'Now Playing' Screen with artist and album info fetching.\r\n\r\n" + "IMPROVEMENTS:\r\n\r\n" + "Greatly improved performance and navigation.\n" + "Improved Equalizer UI.\nImproved Blur\n" + "Improved UI (less glitches etc.)\r\n"; await SharedLogic.NotificationManager.ShowMessageBoxAsync(releaseNotes, "What's new in v2.3.0"); RoamingSettingsHelper.SaveSetting("IsFirstTime", false); } if (e.Parameter is StorageFile) { Messenger.Instance.NotifyColleagues(MessageTypes.MsgExecuteCmd, new List <object> { e.Parameter, 0.0, true, 50.0 }); } base.OnNavigatedTo(e); }
public static async Task <bool> SaveCurrentLockscreenImage() { if (RoamingSettingsHelper.GetSetting <string>("DefaultImagePath", "") != "") { DefaultImage = await StorageFile.GetFileFromPathAsync(RoamingSettingsHelper.GetSetting <string>("DefaultImagePath", "")); return(true); } if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar")) { if (DefaultImage == null) { bool success = false; await CoreWindow.GetForCurrentThread().Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async() => { MessageDialog dialog = new MessageDialog("To enable this feature you must set a default lockscreen wallpaper.\rPress OK to continue or cancel to cancel.", "Choose a default lockscreen wallpaper"); dialog.Commands.Add(new UICommand("OK")); dialog.Commands.Add(new UICommand("Cancel")); var response = await dialog.ShowAsync(); if (response.Label == "OK") { FileOpenPicker defaultLockScreenImageDialog = new FileOpenPicker() { CommitButtonText = "Set default lockscreen image." }; defaultLockScreenImageDialog.FileTypeFilter.Add(".jpg"); defaultLockScreenImageDialog.FileTypeFilter.Add(".png"); var image = await defaultLockScreenImageDialog.PickSingleFileAsync(); if (image != null) { DefaultImage = await image.CopyAsync(ApplicationData.Current.LocalFolder, "lockscreen.jpg", NameCollisionOption.ReplaceExisting); RoamingSettingsHelper.SaveSetting("DefaultImagePath", DefaultImage.Path); success = true; } } }); return(success); } } else if (!File.Exists(ApplicationData.Current.TemporaryFolder.Path + "\\lockscreen.jpg")) { using (IRandomAccessStream imageStream = LockScreen.GetImageStream()) using (var reader = new DataReader(imageStream)) { var lockscreenFile = await ApplicationData.Current.TemporaryFolder.CreateFileAsync("lockscreen.jpg", CreationCollisionOption.FailIfExists); await reader.LoadAsync((uint)imageStream.Size); var buffer = new byte[(int)imageStream.Size]; reader.ReadBytes(buffer); await FileIO.WriteBytesAsync(lockscreenFile, buffer); DefaultImage = lockscreenFile; StorageApplicationPermissions.FutureAccessList.Add(DefaultImage); } return(true); } return(false); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { Window.Current.CoreWindow.KeyDown += (sender, args) => GlobalPageKeyDown?.Invoke(sender, args); if (RoamingSettingsHelper.GetSetting <bool>("IsFirstTime", true)) { string releaseNotes = "FIXES:\r\n\r\n" + "Fixed issue with output device not changing when headphones are connected.\n" + "Fixed NowPlayingList loses its ItemTemplate when window size is changed.\n" + "Fixed crash after library load.\n" + "Fixed playlist import.\n" + "Fixed audio stutter when minimizing to background (only mobile).\n" + "Fixed crash when deleting duplicates.\r\n\r\n" + "NEW THINGS:\r\n\r\n" + "Added new Keyboard Shortcuts ('Keybindings' section in Settings).\n" + "Added full translation support.\n" + "Added ability to export playlist (only to .m3u & .pls for now).\n" + "Added silent upcoming song notifications.\n" + "Added translations for Czech and Sinhala languages.\n" + "Added equalizer presets (experimental).\n" + "Added real-time music library updates when filesystem changes (only works when app is running).\n" + "Added 'Contribute' section in settings to help in contributing.\n" + "Added auto playback stop in BreadPlayer when a song is played in Groove Player.\n" + "Added navigate to now playing screen when song is played on mobile.\n" + "Added auto removal of duplicates when importing songs.\n" + "Added navigate to now playing screen when song's tags are clicked in mini player.\r\n\r\n" + "IMPROVEMENTS:\r\n\r\n" + "Improved hamburger menu list item response on tap/click.\n" + "Improved all animations and transitions.\n" + "Improved navigation performance.\n" + "Improved library import.\n" + "Improved overall UI and increased readability.\n" + "Improved startup performance by 50% (only PC).\r\n"; await SharedLogic.NotificationManager.ShowMessageBoxAsync(releaseNotes, "What's new in v2.3.0 (after 120+ commits)"); RoamingSettingsHelper.SaveSetting("IsFirstTime", false); } if (e.Parameter is StorageFile) { Messenger.Instance.NotifyColleagues(MessageTypes.MsgExecuteCmd, new List <object> { e.Parameter, 0.0, true, 50.0 }); } base.OnNavigatedTo(e); }