File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -73,25 +73,24 @@ protected override void OnLaunched(LaunchActivatedEventArgs args)
73
73
74
74
protected override void OnActivated ( IActivatedEventArgs args )
75
75
{
76
- if ( args . Kind == ActivationKind . Protocol )
76
+ if ( args . Kind != ActivationKind . Protocol ) return ;
77
+
78
+ if ( args . IsSnapshotProtocol ( ) )
77
79
{
78
- if ( args . IsSnapshotProtocol ( ) )
79
- {
80
- var protoArgs = ( IProtocolActivatedEventArgs ) args ;
81
- OnAppLaunch ( args ,
82
- new SnapshotLaunchArguments
83
- {
84
- ActivityId = protoArgs . Uri . GetActivityId ( ) ,
85
- LaunchUri = protoArgs . Uri
86
- } ,
87
- false ) ;
88
- }
89
- else
90
- {
91
- // handle any unknown protocol launch as a normal app launch.
92
- OnAppLaunch ( args , null , false ) ;
93
- }
80
+ var protoArgs = ( IProtocolActivatedEventArgs ) args ;
81
+ OnAppLaunch ( args ,
82
+ new SnapshotLaunchArguments
83
+ {
84
+ ActivityId = protoArgs . Uri . GetActivityId ( ) ,
85
+ LaunchUri = protoArgs . Uri
86
+ } ,
87
+ false ) ;
94
88
}
89
+ else
90
+ {
91
+ // handle any unknown protocol launch as a normal app launch.
92
+ OnAppLaunch ( args , null , false ) ;
93
+ }
95
94
}
96
95
97
96
private void OnAppLaunch ( IActivatedEventArgs args , object arguments , bool isPreLaunch )
You can’t perform that action at this time.
0 commit comments