commit | 5b9e01be7033015001817d72a771def490bcf6f1 | [log] [tgz] |
---|---|---|
author | Reema Bajwa <reemabajwa@google.com> | Thu May 11 14:18:32 2023 +0000 |
committer | Reema Bajwa <reemabajwa@google.com> | Thu May 11 14:18:41 2023 +0000 |
tree | 323436a584103dc88bc3ed8dd18d863efb2cdea4 | |
parent | c9e66e40ac7ef40dee63a13b978b79c704645074 [diff] |
Fix the exception type set on ui cancellation Test: built & deployed locally Bug: 281849060 Change-Id: Id3617ecf725bbca32e371ddded617deb8967655e
diff --git a/services/credentials/java/com/android/server/credentials/GetRequestSession.java b/services/credentials/java/com/android/server/credentials/GetRequestSession.java index f95ed6a..e820d8a 100644 --- a/services/credentials/java/com/android/server/credentials/GetRequestSession.java +++ b/services/credentials/java/com/android/server/credentials/GetRequestSession.java
@@ -158,7 +158,7 @@ @Override public void onUiCancellation(boolean isUserCancellation) { - String exception = GetCredentialException.TYPE_NO_CREDENTIAL; + String exception = GetCredentialException.TYPE_USER_CANCELED; String message = "User cancelled the selector"; if (!isUserCancellation) { exception = GetCredentialException.TYPE_INTERRUPTED;