diff options
author | Filip Gruszczynski <gruszczy@google.com> | 2014-07-17 16:20:24 -0700 |
---|---|---|
committer | Filip Gruszczynski <gruszczy@google.com> | 2014-07-17 16:20:24 -0700 |
commit | 0048da2114b54357e4901f40930afc7d503e0e24 (patch) | |
tree | 3dba6a46727514dbd1560bc5425a43de56088360 /policy/src | |
parent | c2d09dd74688d451b4e2104f95920f2fdd20eb88 (diff) | |
parent | bbc499415c624ee833a3ee82973d6d0355441e3f (diff) | |
download | frameworks_base-0048da2114b54357e4901f40930afc7d503e0e24.zip frameworks_base-0048da2114b54357e4901f40930afc7d503e0e24.tar.gz frameworks_base-0048da2114b54357e4901f40930afc7d503e0e24.tar.bz2 |
resolved conflicts for merge of bbc49941 to lmp-dev
Change-Id: If8e607ab1946c3ca5bb8960d32fdefebbfb21ffe
Diffstat (limited to 'policy/src')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindow.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java index da0bc30..1e61236 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -71,6 +71,7 @@ import android.util.SparseArray; import android.util.TypedValue; import android.view.ActionMode; import android.view.ContextThemeWrapper; +import android.view.Display; import android.view.Gravity; import android.view.IRotationWatcher; import android.view.IWindowManager; @@ -3182,9 +3183,17 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { if (a.getBoolean(com.android.internal.R.styleable.Window_windowContentTransitions, false)) { requestFeature(FEATURE_CONTENT_TRANSITIONS); } - if (a.hasValue(com.android.internal.R.styleable.Window_windowOutsetBottom)) { - if (mOutsetBottom == null) mOutsetBottom = new TypedValue(); - a.getValue(com.android.internal.R.styleable.Window_windowOutsetBottom, mOutsetBottom); + + final WindowManager windowService = (WindowManager) getContext().getSystemService( + Context.WINDOW_SERVICE); + if (windowService != null) { + final Display display = windowService.getDefaultDisplay(); + if (display.getDisplayId() == Display.DEFAULT_DISPLAY && + a.hasValue(com.android.internal.R.styleable.Window_windowOutsetBottom)) { + if (mOutsetBottom == null) mOutsetBottom = new TypedValue(); + a.getValue(com.android.internal.R.styleable.Window_windowOutsetBottom, + mOutsetBottom); + } } final Context context = getContext(); |