Skip to content
Snippets Groups Projects
Commit bf31e2f4 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix PopuLayout view editor mode

parent 78f2ded5
No related branches found
No related tags found
1 merge request!1131Settings moved to player + new advanced icons
......@@ -125,7 +125,9 @@ class PopupLayout : ConstraintLayout, ScaleGestureDetector.OnScaleGestureListene
scaleGestureDetector = ScaleGestureDetector(context, this)
setOnTouchListener(this)
windowManager!!.addView(this, params)
mLayoutParams = layoutParams as WindowManager.LayoutParams
if (!isInEditMode) {
mLayoutParams = layoutParams as WindowManager.LayoutParams
}
updateWindowSize()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment