updatezada
This commit is contained in:
parent
a5f0139307
commit
4a417c3603
@ -2,6 +2,10 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<queries>
|
||||
<package android:name="br.com.aditum.smartpostef" />
|
||||
</queries>
|
||||
|
||||
<application
|
||||
android:name=".services.PaymentApplication"
|
||||
android:allowBackup="true"
|
||||
|
||||
@ -377,6 +377,8 @@ class PaymentViewModel(
|
||||
val callback = object : InitResponseCallback.Stub() {
|
||||
override fun onResponse(initResponse: InitResponse?) {
|
||||
viewModelScope.launch {
|
||||
val json = gson.toJson(initResponse)
|
||||
Log.d(TAG, json)
|
||||
if (initResponse != null && initResponse.initialized) {
|
||||
_sdkState.value = SdkState.IDLE
|
||||
if (activationCode != null) {
|
||||
|
||||
@ -115,8 +115,4 @@ class PaymentApplication : Application() {
|
||||
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