Skip to content

Commit

Permalink
show more clearly when sync type was toxproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 14, 2024
1 parent ace1bef commit 6ab03e8
Showing 1 changed file with 25 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,23 +526,38 @@ else if (autoLinkMode == AutoLinkMode.MODE_CUSTOM) // tox: urls
if (m.TRIFA_SYNC_TYPE == TRIFAGlobals.TRIFA_SYNC_TYPE.TRIFA_SYNC_TYPE_NGC_PEERS.value)
{
imageView.setImageResource(R.drawable.circle_pink);

if (m.sync_confirmations > 0)
{
String confirmations_text = "" + m.sync_confirmations;
if (m.sync_confirmations > 9)
{
confirmations_text = "+";
}

final TextDrawable drawable2 = TextDrawable.builder().beginConfig().textColor(Color.WHITE).
bold().width(60).height(60).fontSize(58).endConfig().
buildRound(confirmations_text, Color.GRAY);
imageView.setImageDrawable(drawable2);
}
}
else
{
imageView.setImageResource(R.drawable.circle_orange);
}

if (m.sync_confirmations > 0)
{
String confirmations_text = "" + m.sync_confirmations;
if (m.sync_confirmations > 9)
if (m.sync_confirmations > 0)
{
confirmations_text = "+";
}
String confirmations_text = "" + m.sync_confirmations;
if (m.sync_confirmations > 9)
{
confirmations_text = "+";
}

final TextDrawable drawable2 = TextDrawable.builder().beginConfig().textColor(Color.WHITE).bold().width(60).height(60).fontSize(58).endConfig().buildRound(
confirmations_text, Color.GRAY);
imageView.setImageDrawable(drawable2);
final TextDrawable drawable2 = TextDrawable.builder().beginConfig().textColor(Color.BLACK).
bold().width(60).height(60).fontSize(58).endConfig().
buildRound(confirmations_text, Color.parseColor("#ffce00"));
imageView.setImageDrawable(drawable2);
}
}
}
catch(Exception e3)
Expand Down

0 comments on commit 6ab03e8

Please sign in to comment.