Skip to content

Commit

Permalink
修复无法在android studio渲染的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonDevLifeLog committed Jan 8, 2020
1 parent 07519f8 commit 67f0a65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private void initGlobalViews(Context context) {
boolean transparentStatusBar = StatusBarUtils.supportTransparentStatusBar();

// 构建标题栏填充视图
if (fillStatusBar && transparentStatusBar) {
if (fillStatusBar && transparentStatusBar && !isInEditMode()) {
int statusBarHeight = StatusBarUtils.getStatusBarHeight(context);
viewStatusBarFill = new View(context);
viewStatusBarFill.setId(StatusBarUtils.generateViewId());
Expand Down

0 comments on commit 67f0a65

Please sign in to comment.