diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-04-20 18:18:51 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-04-21 15:17:52 -0700 |
commit | 44bc17c6b517aef35a390c81b5aa79c4f284f744 (patch) | |
tree | b4dabc94a8974f81cf7ea855a93e307205c5b8d7 /core/java/android/app/Activity.java | |
parent | 52c03d2cb9a782366e804d1910a7c8f072b05353 (diff) | |
download | frameworks_base-44bc17c6b517aef35a390c81b5aa79c4f284f744.zip frameworks_base-44bc17c6b517aef35a390c81b5aa79c4f284f744.tar.gz frameworks_base-44bc17c6b517aef35a390c81b5aa79c4f284f744.tar.bz2 |
Rework display size access.
Applications now get the display size from the window manager. No
behavior should be changed yet, this is just prep for some real
changes.
Change-Id: I2958a6660895c1cba2b670509600014e55ee9273
Diffstat (limited to 'core/java/android/app/Activity.java')
-rw-r--r-- | core/java/android/app/Activity.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 389d4856..f5849c2 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -818,18 +818,6 @@ public class Activity extends ContextThemeWrapper return mWindow != null ? mWindow.getCurrentFocus() : null; } - @Override - public int getWallpaperDesiredMinimumWidth() { - int width = super.getWallpaperDesiredMinimumWidth(); - return width <= 0 ? getWindowManager().getDefaultDisplay().getWidth() : width; - } - - @Override - public int getWallpaperDesiredMinimumHeight() { - int height = super.getWallpaperDesiredMinimumHeight(); - return height <= 0 ? getWindowManager().getDefaultDisplay().getHeight() : height; - } - /** * Called when the activity is starting. This is where most initialization * should go: calling {@link #setContentView(int)} to inflate the |