cmd/ebitenmobile: Refactoring

This commit is contained in:
Hajime Hoshi 2019-10-19 02:26:51 +09:00
parent 6f6cceb42c
commit 15dc4bc647
2 changed files with 2 additions and 3 deletions

View File

@ -361,17 +361,16 @@ public class EbitenView extends ViewGroup {
public EbitenView(Context context) {
super(context);
ebitenSurfaceView_ = new EbitenSurfaceView(context);
initialize();
}
public EbitenView(Context context, AttributeSet attrs) {
super(context, attrs);
ebitenSurfaceView_ = new EbitenSurfaceView(context, attrs);
initialize();
}
private void initialize() {
ebitenSurfaceView_ = new EbitenSurfaceView(getContext());
LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
addView(ebitenSurfaceView_, params);
}

File diff suppressed because one or more lines are too long