MCPcopy Create free account
hub / github.com/M66B/FairEmail / formatNumber

Method formatNumber

app/src/main/java/eu/faircode/email/Helper.java:2535–2539  ·  view source on GitHub ↗
(Integer number, long max, NumberFormat nf)

Source from the content-addressed store, hash-verified

2533 }
2534
2535 static String formatNumber(Integer number, long max, NumberFormat nf) {
2536 if (number == null)
2537 return null;
2538 return nf.format(Math.min(number, max)) + (number > max ? "+" : "");
2539 }
2540
2541 static void linkPro(final TextView tv) {
2542 if (ActivityBilling.isPro(tv.getContext()) && !BuildConfig.DEBUG)

Callers 4

bindToMethod · 0.95
runMethod · 0.95
bindToMethod · 0.95
bindToMethod · 0.95

Calls 2

minMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected