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

Commit e2f83fac authored by Deepanshu Gupta's avatar Deepanshu Gupta Committed by Android Git Automerger
Browse files

am 52abbced: Merge "Fix SurfaceView in LayoutLib." into lmp-preview-dev

* commit '52abbced58ace68f8a91c4d092061d115af3b268':
  Fix SurfaceView in LayoutLib.
parents 9856739c 083f2714
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);