diff options
| author | Mitsuru Oshima <oshima@google.com> | 2009-07-06 17:20:38 -0700 |
|---|---|---|
| committer | Mitsuru Oshima <oshima@google.com> | 2009-07-08 15:21:30 -0700 |
| commit | 1ecf5d28817f0a051e77488380dcd5bc622ea169 (patch) | |
| tree | c40b5f6e9d5d1ef01d90a6d476760af465737a97 /core/java/android/util | |
| parent | 7761920b2a2efc76d08c63d5be1b3ce829746e4b (diff) | |
| download | frameworks_base-1ecf5d28817f0a051e77488380dcd5bc622ea169.zip frameworks_base-1ecf5d28817f0a051e77488380dcd5bc622ea169.tar.gz frameworks_base-1ecf5d28817f0a051e77488380dcd5bc622ea169.tar.bz2 | |
Re-implementation of large screen support using window manager.
* added background filler surface to fill the outer rim. Using the same layer as dim surface because
they never co-exists (in the same window)
* clean up the obsolete code in CompatibiltyMode/ViewRoot for support large screen support.
Diffstat (limited to 'core/java/android/util')
| -rw-r--r-- | core/java/android/util/DisplayMetrics.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/java/android/util/DisplayMetrics.java b/core/java/android/util/DisplayMetrics.java index 4179edb..9071bf0 100644 --- a/core/java/android/util/DisplayMetrics.java +++ b/core/java/android/util/DisplayMetrics.java @@ -109,7 +109,6 @@ public class DisplayMetrics { */ public void updateMetrics(CompatibilityInfo compatibilityInfo, int orientation, int screenLayout) { - int xOffset = 0; if (!compatibilityInfo.isConfiguredExpandable()) { // Note: this assume that configuration is updated before calling // updateMetrics method. @@ -142,7 +141,6 @@ public class DisplayMetrics { if (defaultWidth < widthPixels) { // content/window's x offset in original pixels - xOffset = ((widthPixels - defaultWidth) / 2); widthPixels = defaultWidth; } if (defaultHeight < heightPixels) { @@ -154,7 +152,6 @@ public class DisplayMetrics { compatibilityInfo.setExpandable(true); } } - compatibilityInfo.setVisibleRect(xOffset, widthPixels, heightPixels); if (compatibilityInfo.isScalingRequired()) { float invertedRatio = compatibilityInfo.applicationInvertedScale; density *= invertedRatio; |
