Skip to content

Commit

Permalink
- Fix the crash on some screens
Browse files Browse the repository at this point in the history
  • Loading branch information
reyalpsirc committed Nov 15, 2017
1 parent 34eb8d2 commit a0ea201
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ private void createLayout() {
if (hasBackgroundColor()) {
layout.asView().setBackgroundColor(AppStyle.appStyle.screenBackgroundColor.getColor());
}
String screenBackgroundImageName = activityParams.screenParams.styleParams.screenBackgroundImageName;
String screenBackgroundImageName = null;
if (activityParams.screenParams != null && activityParams.screenParams.styleParams != null) {
screenBackgroundImageName = activityParams.screenParams.styleParams.screenBackgroundImageName;
}
if (screenBackgroundImageName != null) {
layout.asView().setBackgroundResource(this.getResources().getIdentifier(screenBackgroundImageName, "drawable", this.getPackageName()));
}
Expand Down

0 comments on commit a0ea201

Please sign in to comment.