Review corrections
This commit is contained in:
+2
-3
@@ -343,9 +343,8 @@ public class BuySendSwapActivity extends AsyncInitializationActivity
|
||||
TextView fromValueText = findViewById(R.id.from_value_text);
|
||||
String value = fromValueText.getText().toString();
|
||||
// TODO(sergz): Some kind of validation that we have enough balance
|
||||
// TODO(sergz): Get gas price
|
||||
TxData data = Utils.getTxData(
|
||||
"0x1", "0x20000000000", "0xFDE8", to, Utils.toHexWei(value), new byte[0]);
|
||||
TxData data =
|
||||
Utils.getTxData("0x1", "", "", to, Utils.toHexWei(value), new byte[0]);
|
||||
Spinner accountSpinner = findViewById(R.id.accounts_spinner);
|
||||
String from = mCustomAccountAdapter.getTitleAtPosition(
|
||||
accountSpinner.getSelectedItemPosition());
|
||||
|
||||
@@ -66,7 +66,7 @@ public class TxFragment extends Fragment {
|
||||
|
||||
TextView gasFeeAmount = view.findViewById(R.id.gas_fee_amount);
|
||||
gasFeeAmount.setText(
|
||||
String.format("%.8f", Utils.fromHexWei(mTxInfo.txData.baseData.gasPrice)));
|
||||
String.format("%.8f", Utils.fromHexWei(mTxInfo.txData.baseData.gasPrice)) + " ETH");
|
||||
TextView totalAmount = view.findViewById(R.id.total_amount);
|
||||
totalAmount.setText(String.format("%.8f", Utils.fromHexWei(mTxInfo.txData.baseData.value))
|
||||
+ " " + mAsset + " + "
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:layout_marginBottom="25dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user