Fix ScreenDensity calculation.

This commit is contained in:
Greyson Parrelli
2026-03-05 11:08:20 -05:00
committed by jeffrey-signal
parent c2bdc11832
commit 2356bb6da2
2 changed files with 101 additions and 1 deletions

View File

@@ -44,10 +44,10 @@ public final class ScreenDensity {
String bucket = UNKNOWN;
for (Map.Entry<Integer, String> entry : LEVELS.entrySet()) {
bucket = entry.getValue();
if (entry.getKey() > density) {
break;
}
bucket = entry.getValue();
}
return new ScreenDensity(bucket, density);