Skip to content

Commit ed6be14

Browse files
committed
handle wallpaper view
1 parent 70c1eb4 commit ed6be14

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

core/src/processing/core/PSurfaceAndroid2D.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public void initView(int sketchWidth, int sketchHeight) {
142142
}
143143
setRootView(rootView);
144144
} else if (component.getKind() == AppComponent.WALLPAPER) {
145+
/*
145146
int displayWidth = component.getWidth();
146147
int displayHeight = component.getHeight();
147148
View rootView;
@@ -169,7 +170,8 @@ public void initView(int sketchWidth, int sketchHeight) {
169170
// window.setContentView(overallLayout);
170171
rootView = overallLayout;
171172
}
172-
setRootView(rootView);
173+
*/
174+
setRootView(getSurfaceView());
173175
}
174176
}
175177

core/src/processing/opengl/PSurfaceGLES.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ public void initView(int sketchWidth, int sketchHeight) {
167167
}
168168
setRootView(rootView);
169169
} else if (component.getKind() == AppComponent.WALLPAPER) {
170+
/*
170171
int displayWidth = component.getWidth();
171172
int displayHeight = component.getHeight();
172173
View rootView;
@@ -195,6 +196,8 @@ public void initView(int sketchWidth, int sketchHeight) {
195196
rootView = overallLayout;
196197
}
197198
setRootView(rootView);
199+
*/
200+
setRootView(getSurfaceView());
198201
}
199202
}
200203

0 commit comments

Comments
 (0)