Skip to content

Commit 2704cb9

Browse files
committed
replaced import android.support.v4.os.ResultReceiver by import android.os.ResultReceiver
1 parent 5a5ca77 commit 2704cb9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

libs/processing-core/src/main/java/processing/core/PSurfaceNone.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import android.view.ViewGroup.LayoutParams;
4141
import android.widget.LinearLayout;
4242
import android.widget.RelativeLayout;
43-
import android.support.v4.os.ResultReceiver;
43+
import android.os.ResultReceiver;
4444

4545
import android.service.wallpaper.WallpaperService;
4646
import android.support.wearable.watchface.WatchFaceService;
@@ -77,7 +77,7 @@ public class PSurfaceNone implements PSurface, PConstants {
7777
protected boolean requestedThreadStart = false;
7878
protected Thread thread;
7979
protected boolean paused;
80-
protected Object pauseObject = new Object();
80+
protected final Object pauseObject = new Object();
8181

8282
protected float frameRateTarget = 60;
8383
protected long frameRatePeriod = 1000000000L / 60L;
@@ -332,8 +332,7 @@ public InputStream openFileInput(String filename) {
332332
try {
333333
return activity.openFileInput(filename);
334334
} catch (FileNotFoundException e) {
335-
// TODO Auto-generated catch block
336-
e.printStackTrace();
335+
System.err.println("Cannot open file " + filename);
337336
}
338337
}
339338
return null;
@@ -531,7 +530,9 @@ public void run() { // not good to make this synchronized, locks things up
531530
try {
532531
Thread.sleep(sleepTime / 1000000L, (int) (sleepTime % 1000000L));
533532
noDelays = 0; // Got some sleep, not delaying anymore
534-
} catch (InterruptedException ex) { }
533+
} catch (InterruptedException ex) {
534+
System.err.println("Cannot properly set the timing for the draw animation.");
535+
}
535536

536537
overSleepTime = (System.nanoTime() - afterTime) - sleepTime;
537538

0 commit comments

Comments
 (0)