premnirmal / StockTicker

A resizable widget that shows your financial portfolio on your android home screen
GNU General Public License v3.0
440 stars 116 forks source link

BRK-A (an admittedly ludicrous stock) doesn't fit #377

Closed eichin closed 2 months ago

eichin commented 2 months ago

Describe the bug Widget type: fixed; widget size: default; widget text size: small; "show currency" not checked. BRK-A renders as BRK...3,640.002,615.00 (the leading 3 is chopped in half, the 2 is squished against the zeros but is at least in a distinct color.)

To Reproduce Steps to reproduce the behavior: Add BRK-A (Berkshire Hathaway) to the widget list.

Expected behavior

I'm aware that BRK-A's refusal to ever split is a problem for stock ticker app developers everywhere. Still, displaying only the lower 4 out of 6 digits isn't really meaningful (might as well just refuse to include it, at that point.)

Many fixes are possible; in this case, dropping cents would help, and possibly thousands - "629K" would fit fine. Alternatively, keep all of the price digits but drop or round the changed-by amount (here, "2.6K" would also give room.)

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context (This is definitely not an important bug at all - I'm certainly only watching this stock for entertainment purposes, as a software developer - and the app is a great replacement for previous generations that have fallen out of maintenance.)