mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-06 03:50:23 +02:00
Fix server purchase public key verification
This commit is contained in:
parent
13c97bc41e
commit
53f6c5579a
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class PurchaseModel(application: Application): AndroidViewModel(application) {
|
|||
CanDoPurchaseStatus.NoForUnknownReason
|
||||
|
||||
if (canDoPurchase is CanDoPurchaseStatus.Yes) {
|
||||
if (canDoPurchase.publicKey?.equals(Base64.decode(BuildConfig.googlePlayKey, 0)) == false) {
|
||||
if (canDoPurchase.publicKey?.contentEquals(Base64.decode(BuildConfig.googlePlayKey, 0)) == false) {
|
||||
statusInternal.value = PurchaseFragmentServerHasDifferentPublicKey
|
||||
} else {
|
||||
val checkout = Checkout.forApplication(application.billing)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue