updatezada
This commit is contained in:
parent
a5f0139307
commit
4a417c3603
@ -2,6 +2,10 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
|
<queries>
|
||||||
|
<package android:name="br.com.aditum.smartpostef" />
|
||||||
|
</queries>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".services.PaymentApplication"
|
android:name=".services.PaymentApplication"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
|||||||
@ -377,6 +377,8 @@ class PaymentViewModel(
|
|||||||
val callback = object : InitResponseCallback.Stub() {
|
val callback = object : InitResponseCallback.Stub() {
|
||||||
override fun onResponse(initResponse: InitResponse?) {
|
override fun onResponse(initResponse: InitResponse?) {
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
|
val json = gson.toJson(initResponse)
|
||||||
|
Log.d(TAG, json)
|
||||||
if (initResponse != null && initResponse.initialized) {
|
if (initResponse != null && initResponse.initialized) {
|
||||||
_sdkState.value = SdkState.IDLE
|
_sdkState.value = SdkState.IDLE
|
||||||
if (activationCode != null) {
|
if (activationCode != null) {
|
||||||
|
|||||||
@ -115,8 +115,4 @@ class PaymentApplication : Application() {
|
|||||||
Log.e(TAG, "Failed to connect to service after $maxAttempts attempts")
|
Log.e(TAG, "Failed to connect to service after $maxAttempts attempts")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun ensureServiceConnected(): Boolean {
|
|
||||||
return isServiceConnected
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user