Skip to content

Commit 31b4628

Browse files
DaVinci9196mar-v-in
authored andcommitted
Vending: Fix missing in-app message callback
1 parent 92623c3 commit 31b4628

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎vending-app/src/main/java/org/microg/vending/billing/InAppBillingServiceImpl.kt‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,12 @@ class InAppBillingServiceImpl(private val context: Context) : IInAppBillingServi
647647
}
648648

649649
override fun showInAppMessages(apiVersion: Int, packageName: String?, extraParams: Bundle?, callback: IInAppBillingServiceCallback?) {
650-
Log.d(TAG, "showInAppMessages Not yet implemented")
650+
Log.d(TAG, "showInAppMessages $apiVersion packageName:$packageName bundle:${bundleToMap(extraParams)}")
651+
try {
652+
callback?.callback(null)
653+
} catch (e: Exception) {
654+
Log.w(TAG, "Failed to deliver showInAppMessages callback", e)
655+
}
651656
}
652657

653658
override fun getBillingConfig(apiVersion: Int, packageName: String?, bundle: Bundle?, callback: IInAppBillingGetBillingConfigCallback) {

0 commit comments

Comments
 (0)