summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/res
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-05-26 14:14:35 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-05-26 14:14:35 -0700
commit76450622f08b1d0d09df7f1ad8e52afe01090770 (patch)
tree3d61522a5670621da4083f2d8542478a3befcd26 /core/java/android/content/res
parent0bb63c58a464e7df60de103319204b7b590e5d75 (diff)
parentd5238cc1ab8366389b2aada228f2f2e5cbb3244e (diff)
downloadframeworks_base-76450622f08b1d0d09df7f1ad8e52afe01090770.zip
frameworks_base-76450622f08b1d0d09df7f1ad8e52afe01090770.tar.gz
frameworks_base-76450622f08b1d0d09df7f1ad8e52afe01090770.tar.bz2
am d5238cc1: am 7a09f72b: Merge "Rework how we decide whether to use system or status bar." into honeycomb-mr2
* commit 'd5238cc1ab8366389b2aada228f2f2e5cbb3244e': Rework how we decide whether to use system or status bar.
Diffstat (limited to 'core/java/android/content/res')
-rw-r--r--core/java/android/content/res/CompatibilityInfo.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/content/res/CompatibilityInfo.java b/core/java/android/content/res/CompatibilityInfo.java
index dca53a8..8d725cd 100644
--- a/core/java/android/content/res/CompatibilityInfo.java
+++ b/core/java/android/content/res/CompatibilityInfo.java
@@ -392,8 +392,8 @@ public class CompatibilityInfo implements Parcelable {
// compatible with large screens, so diddle it.
CompatibilityInfo.updateCompatibleScreenFrame(inoutDm, null, inoutDm);
} else {
- inoutDm.widthPixels = inoutDm.realWidthPixels;
- inoutDm.heightPixels = inoutDm.realHeightPixels;
+ inoutDm.widthPixels = inoutDm.unscaledWidthPixels;
+ inoutDm.heightPixels = inoutDm.unscaledHeightPixels;
}
if (isScalingRequired()) {
@@ -429,8 +429,8 @@ public class CompatibilityInfo implements Parcelable {
*/
public static float updateCompatibleScreenFrame(DisplayMetrics dm,
Rect outRect, DisplayMetrics outDm) {
- final int width = dm.realWidthPixels;
- final int height = dm.realHeightPixels;
+ final int width = dm.unscaledWidthPixels;
+ final int height = dm.unscaledHeightPixels;
int shortSize, longSize;
if (width < height) {
shortSize = width;