summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-10-11 15:50:17 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-11 15:50:17 -0700
commit86ad866283dc05c2adb8f673510e8b45b0b5ee5f (patch)
tree26a557b66cdf00ecc3785aa77ca8c9406d08f7c0 /graphics
parent402099f7861f306c2dd7c561bdc19b8f65d79b65 (diff)
parent0b68477f8287fe5ddac1beb1c9d0811ded034dad (diff)
downloadframeworks_base-86ad866283dc05c2adb8f673510e8b45b0b5ee5f.zip
frameworks_base-86ad866283dc05c2adb8f673510e8b45b0b5ee5f.tar.gz
frameworks_base-86ad866283dc05c2adb8f673510e8b45b0b5ee5f.tar.bz2
Merge "Don't scale bitmaps to an empty size when targetDpi=0 Bug #7334217" into jb-mr1-dev
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/Bitmap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java
index 4604437..6238edb 100644
--- a/graphics/java/android/graphics/Bitmap.java
+++ b/graphics/java/android/graphics/Bitmap.java
@@ -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;
}