mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Added e-mail confirmation for payment and fixed number formats.
This commit is contained in:
@@ -10,6 +10,7 @@ import android.widget.TextView
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import com.futo.futopay.PaymentConfigurations
|
||||
import com.futo.futopay.PaymentManager
|
||||
import com.futo.futopay.formatMoney
|
||||
import com.futo.platformplayer.BuildConfig
|
||||
import com.futo.platformplayer.R
|
||||
import com.futo.platformplayer.UIDialogs
|
||||
@@ -94,9 +95,8 @@ class BuyFragment : MainFragment() {
|
||||
|
||||
if(currency != null && prices.containsKey(currency.id)) {
|
||||
val price = prices[currency.id]!!;
|
||||
val priceDecimal = (price.toDouble() / 100);
|
||||
withContext(Dispatchers.Main) {
|
||||
_buttonBuyText.text = currency.symbol + String.format("%.2f", priceDecimal) + context.getString(R.string.plus_tax);
|
||||
_buttonBuyText.text = formatMoney(country.id, currency.id, price) + context.getString(R.string.plus_tax);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Submodule app/src/stable/assets/sources/bilibili updated: 5809463f3d...9dedbca4f2
Submodule app/src/stable/assets/sources/nebula updated: ed6e7fe340...9e6dcf0935
Submodule app/src/stable/assets/sources/odysee updated: b8ceab3e57...59774ac084
Submodule app/src/stable/assets/sources/spotify updated: b94d5a5091...1ccd471cf4
Submodule app/src/stable/assets/sources/youtube updated: 95ae01d535...41e9163496
Submodule app/src/unstable/assets/sources/bilibili updated: 5809463f3d...9dedbca4f2
Submodule app/src/unstable/assets/sources/nebula updated: ed6e7fe340...9e6dcf0935
Submodule app/src/unstable/assets/sources/odysee updated: b8ceab3e57...59774ac084
Submodule app/src/unstable/assets/sources/spotify updated: b94d5a5091...1ccd471cf4
Submodule app/src/unstable/assets/sources/youtube updated: 95ae01d535...41e9163496
+1
-1
Submodule dep/futopay updated: c8992e6a0e...c3f532c660
Reference in New Issue
Block a user