diff options
Diffstat (limited to 'tests/DpiTest')
-rw-r--r-- | tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java | 3 |
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 6192a3c..2a40c57 100644 --- a/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java +++ b/tests/DpiTest/src/com/google/android/test/dpi/DpiTestActivity.java @@ -62,7 +62,8 @@ public class DpiTestActivity extends Activity { | ApplicationInfo.FLAG_SUPPORTS_SMALL_SCREENS | ApplicationInfo.FLAG_RESIZEABLE_FOR_SCREENS | ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES; - app.getResources().setCompatibilityInfo(new CompatibilityInfo(ai)); + app.getResources().setCompatibilityInfo(new CompatibilityInfo(ai, + getResources().getConfiguration().screenLayout, false)); } } catch (PackageManager.NameNotFoundException e) { throw new RuntimeException("ouch", e); |