Skip to content

Commit 6e22ca9

Browse files
Handle any error gracefully when amazon app url scheme is not found
Co-authored-by: Shahzaib <[email protected]>
1 parent 44d6d00 commit 6e22ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/microsoft/identity/common/internal/ui/webview/AzureActiveDirectoryWebViewClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ private void processAmazonAppUri(@NonNull final String url) {
409409
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
410410
getActivity().startActivity(intent);
411411
Logger.info(methodTag, "Sent Intent to launch Amazon app");
412-
} catch (android.content.ActivityNotFoundException e) {
412+
} catch (Throwable throwable) {
413413
Logger.error(methodTag, "Failed to launch Amazon app.", e);
414414
}
415415
}

0 commit comments

Comments
 (0)