From 71a85575d41d08e1fcde5cd5c996e948b368a1ff Mon Sep 17 00:00:00 2001 From: Diego Perez Date: Mon, 3 Aug 2015 14:20:18 +0100 Subject: [PATCH] Restore session params "no decoration" flag This seems to have removed from a previous version and the theme editor relies on it to remove the decoration around the preview. Change-Id: Ifab99e9c1689bfe44ca593e8c66c24e57c3e8c4c --- .../src/com/android/layoutlib/bridge/impl/Layout.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java index 8c7ea8a110853..68dbf8bfee43f 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java @@ -329,9 +329,12 @@ class Layout extends RelativeLayout { mWindowIsFloating = getBooleanThemeValue(mResources, ATTR_WINDOW_FLOATING, true, true); findBackground(); - findStatusBar(); - findActionBar(); - findNavBar(); + + if (!mParams.isForceNoDecor()) { + findStatusBar(); + findActionBar(); + findNavBar(); + } } private void findBackground() {