Skip to content

Commit 876b5c9

Browse files
committed
android: release bitshares v4.2. fixed a possible crash on the update position interface.
1 parent 4b7e144 commit 876b5c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ android {
1616
applicationId "org.bitshares.app"
1717
minSdkVersion 21
1818
targetSdkVersion 28
19-
versionCode 202002151
20-
versionName "4.0"
19+
versionCode 202002162
20+
versionName "4.2"
2121
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2222
externalNativeBuild {
2323
cmake {

android/app/src/main/java/com/btsplusplus/fowallet/ActivityIndexCollateral.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ class ActivityIndexCollateral : BtsppActivity() {
369369
val backing_asset = data_array.getJSONObject(1)
370370
_debtPair = TradingPair().initWithBaseAsset(newDebtAsset, backing_asset)
371371
// 切换了资产(更新输入框可输入的精度信息)
372-
_tf_debt_watcher?.set_precision(_debtPair!!._basePrecision)?.clear()
373-
_tf_coll_watcher?.set_precision(_debtPair!!._quotePrecision)?.clear()
372+
_tf_debt_watcher?.set_precision(_debtPair!!._basePrecision)?.set_new_text("")
373+
_tf_coll_watcher?.set_precision(_debtPair!!._quotePrecision)?.set_new_text("")
374374
_refreshUI(_isUserLogined(), feed_data)
375375
}
376376
}
@@ -806,7 +806,7 @@ class ActivityIndexCollateral : BtsppActivity() {
806806
if (fee_balance != null) {
807807
val fee = _fee_item!!.getString("amount").toDouble()
808808
val old = fee_balance.getString("amount").toDouble()
809-
var new_balance: JSONObject
809+
val new_balance: JSONObject
810810
if (old >= fee) {
811811
new_balance = jsonObjectfromKVS("asset_id", fee_asset_id, "amount", old - fee)
812812
} else {

0 commit comments

Comments
 (0)