We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29fc65f commit fa691d8Copy full SHA for fa691d8
SuperiorPlugin/src/main/java/com/scrappers/superiorExtendedEngine/menuStates/UiStateManager.java
@@ -34,7 +34,9 @@ public class UiStateManager extends RelativeLayout {
34
public UiStateManager(ViewGroup context) {
35
super(context.getContext());
36
/*attach the parent View state*/
37
- setLayoutParams(new LayoutParams(context.getLayoutParams().width,context.getLayoutParams().height));
+ if(context.getLayoutParams() != null) {
38
+ setLayoutParams(new LayoutParams(context.getLayoutParams().width, context.getLayoutParams().height));
39
+ }
40
context.addView(this);
41
this.context=context;
42
}
0 commit comments