LinearTimer icon indicating copy to clipboard operation
LinearTimer copied to clipboard

Set Text not in properly format

Open GiuseppeCBrandi opened this issue 3 years ago • 1 comments

First of all thanks for posting this project.

I believe the time will be in better format if you change

String formattedTime = String.format("%02d:%02d", TimeUnit.MILLISECONDS.toMinutes(tickUpdateInMillis), TimeUnit.MILLISECONDS.toSeconds(tickUpdateInMillis) - TimeUnit.MINUTES .toSeconds(TimeUnit.MILLISECONDS.toHours(tickUpdateInMillis)));

to this

String formattedTime = String.format("%02d:%02d", TimeUnit.MILLISECONDS.toMinutes(tickUpdateInMillis), TimeUnit.MILLISECONDS.toSeconds(tickUpdateInMillis) - TimeUnit.MINUTES .toSeconds(TimeUnit.MILLISECONDS.toMinutes(tickUpdateInMillis)));

GiuseppeCBrandi avatar Apr 28 '21 19:04 GiuseppeCBrandi

Thank you for the feedback. Is it possible for you to add this as a PR?

krtkush avatar May 16 '21 19:05 krtkush