File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/com/github/bitcoinlabs/bitcoinmobileandroid Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public void onCreate(Bundle savedInstanceState)
3333 balanceStatusView = (TextView )findViewById (R .id .balance_status );
3434 balanceView = (TextView )findViewById (R .id .balance );
3535 balanceUnconfirmedView = (TextView )findViewById (R .id .balance_unconfirmed );
36-
36+
3737 final View refreshButton = findViewById (R .id .refreshButton );
3838 refreshButton .setOnClickListener (new View .OnClickListener () {
3939 public void onClick (View view ) {
@@ -50,6 +50,9 @@ public void onClick(View view) {
5050 callScan ();
5151 }
5252 });
53+ WalletOpenHelper wallet = new WalletOpenHelper (getApplicationContext ());
54+ long balance = wallet .getBalance ();
55+ balanceView .setText (MoneyUtils .formatSatoshisAsBtcString (balance ));
5356 }
5457
5558 @ Override
You can’t perform that action at this time.
0 commit comments