am fa6e9cf6: am 86ad8662: Merge "Don\'t scale bitmaps to an empty size when targetDpi=0 Bug #7334217" into jb-mr1-dev
* commit 'fa6e9cf65adf7d27714275510967a0eda0695cd4': Don't scale bitmaps to an empty size when targetDpi=0 Bug #7334217
This commit is contained in:
@@ -967,7 +967,7 @@ public final class Bitmap implements Parcelable {
|
||||
* @hide
|
||||
*/
|
||||
static public int scaleFromDensity(int size, int sdensity, int tdensity) {
|
||||
if (sdensity == DENSITY_NONE || sdensity == tdensity) {
|
||||
if (sdensity == DENSITY_NONE || tdensity == DENSITY_NONE || sdensity == tdensity) {
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user