mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Fix ScreenDensity calculation.
This commit is contained in:
committed by
jeffrey-signal
parent
c2bdc11832
commit
2356bb6da2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user