diff options
| author | Dianne Hackborn <hackbod@google.com> | 2011-05-26 00:55:58 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2011-05-26 10:46:19 -0700 |
| commit | 81e56d535c853d73ff537357da5b935f51cb779d (patch) | |
| tree | b0d69765bbefecbdeeadebc24b7e57f902af84b9 /core/java/android/view/WindowManagerPolicy.java | |
| parent | 42f8094c066209a65b09d53611ef5c93daba4c51 (diff) | |
Rework how we decide whether to use system or status bar.
The PhoneWindowManager is now responsible for determing this,
since it needs to do this before we can generate the configuration
since we need to take into account the system bar size we will use.
Also the Display should now report the screen height without
including the system bar.
Change-Id: I82dfcc5e327e4d13d82c373c6c870f557a99b757
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 086ed5a1d4a2..beb23aa45ee3 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -464,6 +464,12 @@ public interface WindowManagerPolicy { public int getMaxWallpaperLayer(); /** + * Return true if the policy allows the status bar to hide. Otherwise, + * it is a tablet-style system bar. + */ + public boolean canStatusBarHide(); + + /** * Return the display width available after excluding any screen * decorations that can never be removed. That is, system bar or * button bar. |
