Skip to content

Commit 71a8557

Browse files
committed
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
1 parent 8dbd484 commit 71a8557

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl

tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/Layout.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,12 @@ public Builder(@NonNull SessionParams params, @NonNull BridgeContext context) {
329329
mWindowIsFloating = getBooleanThemeValue(mResources, ATTR_WINDOW_FLOATING, true, true);
330330

331331
findBackground();
332-
findStatusBar();
333-
findActionBar();
334-
findNavBar();
332+
333+
if (!mParams.isForceNoDecor()) {
334+
findStatusBar();
335+
findActionBar();
336+
findNavBar();
337+
}
335338
}
336339

337340
private void findBackground() {

0 commit comments

Comments
 (0)