summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-05-26 17:12:36 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-05-26 17:12:36 -0700
commit5c2e4d20df934728f39312741ef3390fd87795ce (patch)
tree04662b3fcdc339cea95feee8d14b445c8992dfaf /tests
parent0f667ff5e57e171311c2b4ec19d29832ffbcd3f7 (diff)
parent8fcbfb52607263754b6d3895a112f792c5c3a12e (diff)
downloadframeworks_base-5c2e4d20df934728f39312741ef3390fd87795ce.zip
frameworks_base-5c2e4d20df934728f39312741ef3390fd87795ce.tar.gz
frameworks_base-5c2e4d20df934728f39312741ef3390fd87795ce.tar.bz2
am 8fcbfb52: am 94250ac6: Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2
* commit '8fcbfb52607263754b6d3895a112f792c5c3a12e': Add new supports-screens attributes for declaring the compatible screens.
Diffstat (limited to 'tests')
-rw-r--r--tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java b/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java
index 2a40c57..01c1c70 100644
--- a/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java
+++ b/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java
@@ -63,7 +63,8 @@ public class DpiTestActivity extends Activity {
| ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS
| ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES;
app.getResources().setCompatibilityInfo(new CompatibilityInfo(ai,
- getResources().getConfiguration().screenLayout, false));
+ getResources().getConfiguration().screenLayout,
+ getResources().getConfiguration().smallestScreenWidthDp, false));
}
} catch (PackageManager.NameNotFoundException e) {
throw new RuntimeException("ouch", e);