Commit b8b8f68e authored by r4v3r23's avatar r4v3r23
Browse files

UTXO shortcut & remove balance unit

parent 276711da
......@@ -562,6 +562,13 @@ public class BalanceActivity extends SamouraiActivity {
});
mCollapsingToolbar.setOnClickListener(view -> balanceViewModel.toggleSat());
mCollapsingToolbar.setOnLongClickListener(view -> {
Intent intent = new Intent(BalanceActivity.this, UTXOSActivity.class);
intent.putExtra("_account", account);
startActivityForResult(intent,UTXO_REQUESTCODE);
return false;
});
}
private void setBalance(Long balance, boolean isSat) {
......@@ -575,7 +582,6 @@ public class BalanceActivity extends SamouraiActivity {
String displayAmount = "".concat(isSat ? getSatoshiDisplayAmount(balance) : getBTCDisplayAmount(balance));
String Unit = isSat ? getSatoshiDisplayUnits() : getBTCDisplayUnits();
displayAmount = displayAmount.concat(" ").concat(Unit);
toolbar.setTitle(displayAmount);
setTitle(displayAmount);
mCollapsingToolbar.setTitle(displayAmount);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment