Show network name when rendering 'my address' view

pull/2/head
Marat Subkhankulov 7 years ago
parent 64a5bca2fa
commit 0e3540f1c6
  1. 6
      app/src/main/java/com/wallet/crypto/trustapp/views/RequestActivity.java
  2. 2
      app/src/main/res/values/strings.xml

@ -52,7 +52,11 @@ public class RequestActivity extends AppCompatActivity {
Point size = new Point();
display.getSize(size);
QRcodeWidth = (int) (size.x * QR_CODE_WIDTH_RATIO);
Log.d("QR WIDTH", Integer.toString(QRcodeWidth));
final Controller controller = Controller.with(this);
TextView addressLabel = findViewById(R.id.addressLabel);
addressLabel.setText(getString(R.string.message_this_is_your_address).replace("Ethereum", controller.getCurrentNetwork().getName()));
imageView = (ImageView)findViewById(R.id.imageView);
addressTextView = (TextView)findViewById(R.id.addressTextView);

@ -80,7 +80,7 @@
<string name="account_already_imported">Wallet with this address already exists</string>
<string name="message_delete_account">Permanently deleting wallet. Make sure that it has been exported and stored elsewhere.</string>
<string name="error_import">Error importing keystore</string>
<string name="message_this_is_your_address">Ethereum wallet address</string>
<string name="message_this_is_your_address">My Ethereum wallet address</string>
<string name="min_pwd_length">Password must be at least %d chars long</string>
<string name="backup_warning_text">
Since only you control your money, you\'ll need to save your backup keystore in case this app is deleted. \n\n

Loading…
Cancel
Save