@@ -366,6 +366,16 @@ protected override async void OnActivated(IActivatedEventArgs args)
366
366
}
367
367
}
368
368
break ;
369
+
370
+ case ActivationKind . ToastNotification :
371
+ var eventArgsForNotification = args as ToastNotificationActivatedEventArgs ;
372
+ if ( eventArgsForNotification . Argument == "report" )
373
+ {
374
+ // Launch the URI and open log files location
375
+ //SettingsViewModel.OpenLogLocation();
376
+ SettingsViewModel . ReportIssueOnGitHub ( ) ;
377
+ }
378
+ break ;
369
379
}
370
380
371
381
rootFrame . Navigate ( typeof ( MainPage ) , null , new SuppressNavigationTransitionInfo ( ) ) ;
@@ -437,16 +447,16 @@ private static void AppUnhandledException(Exception ex)
437
447
BindingGeneric = new ToastBindingGeneric ( )
438
448
{
439
449
Children =
440
- {
441
- new AdaptiveText ( )
442
450
{
443
- Text = ResourceController . GetTranslation ( "ExceptionNotificationHeader" )
451
+ new AdaptiveText ( )
452
+ {
453
+ Text = ResourceController . GetTranslation ( "ExceptionNotificationHeader" )
454
+ } ,
455
+ new AdaptiveText ( )
456
+ {
457
+ Text = ResourceController . GetTranslation ( "ExceptionNotificationBody" )
458
+ }
444
459
} ,
445
- new AdaptiveText ( )
446
- {
447
- Text = ResourceController . GetTranslation ( "ExceptionNotificationBody" )
448
- }
449
- } ,
450
460
AppLogoOverride = new ToastGenericAppLogo ( )
451
461
{
452
462
Source = "ms-appx:///Assets/error.png"
@@ -456,13 +466,13 @@ private static void AppUnhandledException(Exception ex)
456
466
Actions = new ToastActionsCustom ( )
457
467
{
458
468
Buttons =
459
- {
460
- new ToastButton ( ResourceController . GetTranslation ( "ExceptionNotificationReportButton" ) , "report" )
461
469
{
462
- ActivationType = ToastActivationType . Foreground
470
+ new ToastButton ( ResourceController . GetTranslation ( "ExceptionNotificationReportButton" ) , "report" )
471
+ {
472
+ ActivationType = ToastActivationType . Foreground
473
+ }
463
474
}
464
475
}
465
- }
466
476
} ;
467
477
468
478
// Create the toast notification
0 commit comments