Claim to provide tapandpay_token_listing feature

This commit is contained in:
Marvin W 2022-01-22 19:18:45 +01:00
parent 9f3a5ce329
commit 3bbae67fda
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A

View File

@ -7,8 +7,10 @@ package org.microg.gms.tapandpay
import android.os.Parcel
import android.os.RemoteException
import android.util.Log
import com.google.android.gms.common.Feature
import com.google.android.gms.common.api.CommonStatusCodes
import com.google.android.gms.common.api.Status
import com.google.android.gms.common.internal.ConnectionInfo
import com.google.android.gms.common.internal.GetServiceRequest
import com.google.android.gms.common.internal.IGmsCallbacks
import com.google.android.gms.tapandpay.TapAndPayStatusCodes.TAP_AND_PAY_NO_ACTIVE_WALLET
@ -21,7 +23,11 @@ private const val TAG = "GmsTapAndPay"
class TapAndPayService : BaseService(TAG, GmsService.TAP_AND_PAY) {
override fun handleServiceRequest(callback: IGmsCallbacks, request: GetServiceRequest, service: GmsService) {
callback.onPostInitComplete(CommonStatusCodes.SUCCESS, TapAndPayImpl(), null)
callback.onPostInitCompleteWithConnectionInfo(CommonStatusCodes.SUCCESS, TapAndPayImpl(), ConnectionInfo().apply {
features = arrayOf(
Feature("tapandpay_token_listing", 3)
)
})
}
}