Skip to content

Commit 0f0017d

Browse files
committed
removed deprecated wear and wallpaper vars
1 parent 565da7a commit 0f0017d

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

core/src/processing/android/PWallpaper.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ public void onCreate(SurfaceHolder surfaceHolder) {
153153
super.onCreate(surfaceHolder);
154154
sketch = createSketch();
155155
sketch.initSurface(PWallpaper.this, getSurfaceHolder());
156-
sketch.preview = isPreview();
157156
if (isPreview()) requestPermissions();
158157
setTouchEventsEnabled(true);
159158
}
@@ -213,13 +212,6 @@ public void onOffsetsChanged(float xOffset, float yOffset,
213212
this.yOffsetStep = yOffsetStep;
214213
this.xPixelOffset = xPixelOffset;
215214
this.yPixelOffset = yPixelOffset;
216-
217-
sketch.homeScreenOffset = xOffset;
218-
if (0 < xOffsetStep) {
219-
sketch.homeScreenCount = (int)(1 + 1 / xOffsetStep);
220-
} else {
221-
sketch.homeScreenCount = 1;
222-
}
223215
}
224216
}
225217

core/src/processing/android/PWatchFaceCanvas.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ private void invalidateIfNecessary() {
202202
public void onAmbientModeChanged(boolean inAmbientMode) {
203203
super.onAmbientModeChanged(inAmbientMode);
204204
invalidateIfNecessary();
205-
if (sketch != null) sketch.ambientMode = inAmbientMode;
206205
// call new event handlers in sketch (?)
207206
}
208207

@@ -212,10 +211,6 @@ public void onPropertiesChanged(Bundle properties) {
212211
super.onPropertiesChanged(properties);
213212
lowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
214213
burnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
215-
if (sketch != null) {
216-
sketch.lowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
217-
sketch.burnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
218-
}
219214
}
220215

221216

@@ -227,13 +222,6 @@ public void onApplyWindowInsets(WindowInsets insets) {
227222
insets.getSystemWindowInsetTop(),
228223
insets.getSystemWindowInsetRight(),
229224
insets.getSystemWindowInsetBottom());
230-
if (sketch != null) {
231-
sketch.isRound = insets.isRound();
232-
sketch.insetLeft = insets.getSystemWindowInsetLeft();
233-
sketch.insetRight = insets.getSystemWindowInsetRight();
234-
sketch.insetTop = insets.getSystemWindowInsetTop();
235-
sketch.insetBottom = insets.getSystemWindowInsetBottom();
236-
}
237225
}
238226

239227

core/src/processing/android/PWatchFaceGLES.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ private void invalidateIfNecessary() {
219219
public void onAmbientModeChanged(boolean inAmbientMode) {
220220
super.onAmbientModeChanged(inAmbientMode);
221221
invalidateIfNecessary();
222-
if (sketch != null) sketch.ambientMode = inAmbientMode;
223222
// call new event handlers in sketch (?)
224223
}
225224

@@ -229,10 +228,6 @@ public void onPropertiesChanged(Bundle properties) {
229228
super.onPropertiesChanged(properties);
230229
lowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
231230
burnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
232-
if (sketch != null) {
233-
sketch.lowBitAmbient = properties.getBoolean(PROPERTY_LOW_BIT_AMBIENT, false);
234-
sketch.burnInProtection = properties.getBoolean(PROPERTY_BURN_IN_PROTECTION, false);
235-
}
236231
}
237232

238233

@@ -243,13 +238,6 @@ public void onApplyWindowInsets(WindowInsets insets) {
243238
insets.getSystemWindowInsetTop(),
244239
insets.getSystemWindowInsetRight(),
245240
insets.getSystemWindowInsetBottom());
246-
if (sketch != null) {
247-
sketch.isRound = insets.isRound();
248-
sketch.insetLeft = insets.getSystemWindowInsetLeft();
249-
sketch.insetRight = insets.getSystemWindowInsetRight();
250-
sketch.insetTop = insets.getSystemWindowInsetTop();
251-
sketch.insetBottom = insets.getSystemWindowInsetBottom();
252-
}
253241
}
254242

255243

0 commit comments

Comments
 (0)