We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 402099f + 0b68477 commit 86ad866Copy full SHA for 86ad866
graphics/java/android/graphics/Bitmap.java
@@ -967,7 +967,7 @@ public int getScaledHeight(int targetDensity) {
967
* @hide
968
*/
969
static public int scaleFromDensity(int size, int sdensity, int tdensity) {
970
- if (sdensity == DENSITY_NONE || sdensity == tdensity) {
+ if (sdensity == DENSITY_NONE || tdensity == DENSITY_NONE || sdensity == tdensity) {
971
return size;
972
}
973
0 commit comments