summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/Activity.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-04-20 18:18:51 -0700
committerDianne Hackborn <hackbod@google.com>2011-04-21 15:17:52 -0700
commit44bc17c6b517aef35a390c81b5aa79c4f284f744 (patch)
treeb4dabc94a8974f81cf7ea855a93e307205c5b8d7 /core/java/android/app/Activity.java
parent52c03d2cb9a782366e804d1910a7c8f072b05353 (diff)
downloadframeworks_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.java12
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