Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #28 from andwun/fix-askuserforagreementasync-crash
Browse files Browse the repository at this point in the history
Fix crash when dismissing ask dialog with back button on WP 8.1
  • Loading branch information
ashtom committed Jul 1, 2015
2 parents 21586c5 + 6002f91 commit dd56910
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HockeySDK_WP81/Universal/CrashHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ protected virtual async Task<bool> AskUserForAgreementAsync()
// Show the message dialog and get the event that was invoked via the async operator
var commandChosen = await messageDialog.ShowAsync();

if (commandChosen == null) {
return false;
}

return (Boolean)commandChosen.Id;
}
}
Expand Down

0 comments on commit dd56910

Please sign in to comment.