summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-04-22 17:22:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-04-22 17:22:26 +0000
commit9a722ebc320c7d8842322fef6f80b0481c8aab5e (patch)
tree362467e9a55648aaa029c15cb41ab283b266285d
parent87e7ba4f45d633e4ce7ac91539534bb8f6d5247f (diff)
parentfba9120ce12c854a80d5ed3faf5bcca33a7a1b91 (diff)
downloadframeworks_base-9a722ebc320c7d8842322fef6f80b0481c8aab5e.zip
frameworks_base-9a722ebc320c7d8842322fef6f80b0481c8aab5e.tar.gz
frameworks_base-9a722ebc320c7d8842322fef6f80b0481c8aab5e.tar.bz2
Merge "Apply insets manually in StatusBarWindowView."
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java
index 1d675bd..c5dae85 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java
@@ -20,6 +20,7 @@ import android.app.StatusBarManager;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
+import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.MotionEvent;
@@ -52,6 +53,16 @@ public class StatusBarWindowView extends FrameLayout
}
@Override
+ protected boolean fitSystemWindows(Rect insets) {
+ if (getFitsSystemWindows()) {
+ setPadding(insets.left, insets.top, insets.right, insets.bottom);
+ } else {
+ setPadding(0, 0, 0, 0);
+ }
+ return true;
+ }
+
+ @Override
protected void onAttachedToWindow () {
super.onAttachedToWindow();