File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed
core/src/processing/android
studio/apps/wallpaper/src/main Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,16 @@ public Engine onCreateEngine() {
119
119
@ Override
120
120
public void onDestroy () {
121
121
super .onDestroy ();
122
- if (engine != null ) engine .onDestroy ();
122
+
123
+ if (engine != null ){
124
+ //engine.sketch = null;
125
+ engine .onDestroy ();
126
+ }
123
127
}
124
128
125
129
126
130
public class WallpaperEngine extends Engine implements ServiceEngine {
127
- private PApplet sketch ;
131
+ PApplet sketch ;
128
132
private float xOffset , xOffsetStep ;
129
133
private float yOffset , yOffsetStep ;
130
134
private int xPixelOffset , yPixelOffset ;
Original file line number Diff line number Diff line change 10
10
<meta-data android : name =" android.service.wallpaper" android : resource =" @xml/wallpaper" />
11
11
</service >
12
12
<activity android : name =" processing.android.PermissionRequestor" />
13
+ <activity android : name =" .DebuggerEntryPointActivity" >
14
+ <intent-filter >
15
+ <action android : name =" android.intent.action.MAIN" />
16
+ <category android : name =" android.intent.category.LAUNCHER" />
17
+ </intent-filter >
18
+ </activity >
13
19
</application >
14
20
</manifest >
Original file line number Diff line number Diff line change
1
+ package wallpaper ;
2
+
3
+ import android .app .Activity ;
4
+ import android .os .Bundle ;
5
+ import android .support .annotation .Nullable ;
6
+
7
+ public class DebuggerEntryPointActivity extends Activity {
8
+ @ Override
9
+ protected void onCreate (@ Nullable Bundle savedInstanceState ) {
10
+ super .onCreate (savedInstanceState );
11
+ }
12
+ }
You can’t perform that action at this time.
0 commit comments