mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Bump version to 6.5.3
This commit is contained in:
@@ -75,13 +75,13 @@ class GooglePayApi(
|
||||
Activity.RESULT_OK -> {
|
||||
data?.let { intent ->
|
||||
PaymentData.getFromIntent(intent)?.let { paymentRequestCallback.onSuccess(it) }
|
||||
} ?: paymentRequestCallback.onError(GooglePayException(-1, "No data returned from Google Pay"))
|
||||
} ?: paymentRequestCallback.onError(GooglePayException("No data returned from Google Pay"))
|
||||
}
|
||||
Activity.RESULT_CANCELED -> paymentRequestCallback.onCancelled()
|
||||
AutoResolveHelper.RESULT_ERROR -> {
|
||||
AutoResolveHelper.getStatusFromIntent(data)?.let {
|
||||
Log.w(TAG, "loadPaymentData failed with error code ${it.statusCode}: ${it.statusMessage}")
|
||||
paymentRequestCallback.onError(GooglePayException(it.statusCode, it.statusMessage))
|
||||
paymentRequestCallback.onError(GooglePayException(it.statusMessage))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -217,5 +217,5 @@ class GooglePayApi(
|
||||
fun onCancelled()
|
||||
}
|
||||
|
||||
class GooglePayException(code: Int, message: String?) : Exception(message)
|
||||
class GooglePayException(message: String?) : Exception(message)
|
||||
}
|
||||
Reference in New Issue
Block a user