Skip to content

Commit eb448c1

Browse files
authored
Update Android templates (#83)
1 parent 2e8980c commit eb448c1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

codegen/Templates/android/README.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# {{artifactId}}
22

3+
[![Build Android App](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-android/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-android/actions/workflows/build.yml)
34
![API version: {{appVersion}}](https://img.shields.io/badge/api-v{{appVersion}}-lightgrey)
45
[![GitHub license](https://img.shields.io/github/license/aspose-barcode-cloud/aspose-barcode-cloud-android)](https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-android)
56

codegen/Templates/android/apiException.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class MainActivity : AppCompatActivity() {
219219
stopRecognizeAnimation()
220220
221221
var message = e.message + ": " + e.details
222-
if (e.code == 0) {
222+
if (e.httpCode == 0) {
223223
message = "Check ClientId and ClientSecret in ApiClient $message"
224224
}
225225
showErrorMessage(message)
@@ -264,7 +264,7 @@ class MainActivity : AppCompatActivity() {
264264
} catch (e: ApiException) {
265265
runOnUiThread {
266266
var message = e.message + ": " + e.details
267-
if (e.code == 0) {
267+
if (e.httpCode == 0) {
268268
message = "Check ClientId and ClientSecret in ApiClient $message"
269269
}
270270
showErrorMessage(message)

0 commit comments

Comments
 (0)