Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put back custom FormatterFileSize to use binary format (1024) instead of SI one (1000) #173

Merged
merged 12 commits into from
May 14, 2024

Conversation

KevinBoulongne
Copy link
Contributor

@KevinBoulongne KevinBoulongne commented May 3, 2024

Since Android O, Google decided to use SI format (1000) instead of binary one (1024) to display bytes.

Source : https://stackoverflow.com/a/3758880

Unit tests are here : #175

@KevinBoulongne KevinBoulongne added the enhancement New feature or request label May 3, 2024
@KevinBoulongne KevinBoulongne requested a review from a team as a code owner May 3, 2024 11:46
@KevinBoulongne KevinBoulongne marked this pull request as draft May 3, 2024 12:27
@KevinBoulongne KevinBoulongne force-pushed the human-readable-binary-bytes-count branch from 9fffc7a to ba36c73 Compare May 6, 2024 06:02
@KevinBoulongne KevinBoulongne changed the title Add custom Formatter.formatShortFileSize to use binary format (1024) instead of SI one (1000) Put back custom FormatterFileSize to use binary format (1024) instead of SI one (1000) May 6, 2024
@KevinBoulongne KevinBoulongne marked this pull request as ready for review May 6, 2024 06:03
@KevinBoulongne KevinBoulongne force-pushed the human-readable-binary-bytes-count branch 2 times, most recently from dd71d4c to bba27b8 Compare May 8, 2024 06:03
@KevinBoulongne KevinBoulongne marked this pull request as draft May 8, 2024 06:03
@KevinBoulongne KevinBoulongne force-pushed the human-readable-binary-bytes-count branch 4 times, most recently from eded749 to cc72f9a Compare May 8, 2024 10:54
@KevinBoulongne KevinBoulongne marked this pull request as ready for review May 8, 2024 10:55
Copy link
Member

@JorisBodin JorisBodin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the translations already present in the Android SDK

@KevinBoulongne KevinBoulongne force-pushed the human-readable-binary-bytes-count branch from eb977bf to 8f4688f Compare May 8, 2024 12:08
@KevinBoulongne KevinBoulongne force-pushed the human-readable-binary-bytes-count branch 2 times, most recently from b93d194 to 806e291 Compare May 13, 2024 06:15
@KevinBoulongne KevinBoulongne force-pushed the human-readable-binary-bytes-count branch from 95a54fe to 0e97dfc Compare May 14, 2024 07:01
Copy link

sonarcloud bot commented May 14, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@KevinBoulongne KevinBoulongne merged commit 03fe517 into master May 14, 2024
3 checks passed
@KevinBoulongne KevinBoulongne deleted the human-readable-binary-bytes-count branch May 14, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants