Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 367a0ce9 authored by Deepanshu Gupta's avatar Deepanshu Gupta
Browse files

Fix SurfaceView in LayoutLib.

Added missing constructor.

Change-Id: I3dc8eb510bf4210568d4bb71ad551446d6835ae2
parent b3372956
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -45,6 +45,10 @@ public class SurfaceView extends MockView {
        super(context, attrs, defStyle);
    }

    public SurfaceView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    public SurfaceHolder getHolder() {
        return mSurfaceHolder;
    }
+5 −1
Original line number Diff line number Diff line
@@ -31,7 +31,11 @@ import android.widget.TextView;
public class MockView extends TextView {

    public MockView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        this(context, attrs, defStyle, 0);
    }

    public MockView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);

        setText(this.getClass().getSimpleName());
        setTextColor(0xFF000000);