mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-19 19:14:51 +00:00
Refs
This commit is contained in:
parent
7cdded8fd7
commit
2070bc7007
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ class BuyFragment : MainFragment() {
|
|||
try {
|
||||
val currencies = StatePayment.instance.getAvailableCurrencies("grayjay");
|
||||
val prices = StatePayment.instance.getAvailableCurrencyPrices("grayjay");
|
||||
val country = StatePayment.instance.getPaymentCountryFromIP()?.let { c -> PaymentConfigurations.COUNTRIES.find { it.id.equals(c, ignoreCase = true) } };
|
||||
val country = StatePayment.instance.getPaymentCountryFromIP(true)?.let { c -> PaymentConfigurations.COUNTRIES.find { it.id.equals(c, ignoreCase = true) } };
|
||||
val currency = country?.let { c -> PaymentConfigurations.CURRENCIES.find { it.id == c.defaultCurrencyId && (currencies.contains(it.id)) } };
|
||||
|
||||
if(currency != null && prices.containsKey(currency.id)) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit c3f532c660527ae579c1dff0d2f9f4d8ea4d3173
|
||||
Subproject commit 829baef9f076281d1da9ef42d7a919dd97714a8d
|
Loading…
Add table
Reference in a new issue