am 86ad8662: Merge "Don\'t scale bitmaps to an empty size when targetDpi=0 Bug #7334217" into jb-mr1-dev
* commit '86ad866283dc05c2adb8f673510e8b45b0b5ee5f': 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