Skip to content

Commit

Permalink
Update Android templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Averin committed Sep 24, 2023
1 parent 2e8980c commit 5e4adb9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions codegen/Templates/android/README.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# {{artifactId}}

[![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)
![API version: {{appVersion}}](https://img.shields.io/badge/api-v{{appVersion}}-lightgrey)
[![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)

Expand Down
4 changes: 2 additions & 2 deletions codegen/Templates/android/apiException.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class MainActivity : AppCompatActivity() {
stopRecognizeAnimation()
var message = e.message + ": " + e.details
if (e.code == 0) {
if (e.httpCode == 0) {
message = "Check ClientId and ClientSecret in ApiClient $message"
}
showErrorMessage(message)
Expand Down Expand Up @@ -264,7 +264,7 @@ class MainActivity : AppCompatActivity() {
} catch (e: ApiException) {
runOnUiThread {
var message = e.message + ": " + e.details
if (e.code == 0) {
if (e.httpCode == 0) {
message = "Check ClientId and ClientSecret in ApiClient $message"
}
showErrorMessage(message)
Expand Down

0 comments on commit 5e4adb9

Please sign in to comment.