|
40 | 40 | import android.view.ViewGroup.LayoutParams;
|
41 | 41 | import android.widget.LinearLayout;
|
42 | 42 | import android.widget.RelativeLayout;
|
43 |
| -import android.support.v4.os.ResultReceiver; |
| 43 | +import android.os.ResultReceiver; |
44 | 44 |
|
45 | 45 | import android.service.wallpaper.WallpaperService;
|
46 | 46 | import android.support.wearable.watchface.WatchFaceService;
|
@@ -77,7 +77,7 @@ public class PSurfaceNone implements PSurface, PConstants {
|
77 | 77 | protected boolean requestedThreadStart = false;
|
78 | 78 | protected Thread thread;
|
79 | 79 | protected boolean paused;
|
80 |
| - protected Object pauseObject = new Object(); |
| 80 | + protected final Object pauseObject = new Object(); |
81 | 81 |
|
82 | 82 | protected float frameRateTarget = 60;
|
83 | 83 | protected long frameRatePeriod = 1000000000L / 60L;
|
@@ -332,8 +332,7 @@ public InputStream openFileInput(String filename) {
|
332 | 332 | try {
|
333 | 333 | return activity.openFileInput(filename);
|
334 | 334 | } catch (FileNotFoundException e) {
|
335 |
| - // TODO Auto-generated catch block |
336 |
| - e.printStackTrace(); |
| 335 | + System.err.println("Cannot open file " + filename); |
337 | 336 | }
|
338 | 337 | }
|
339 | 338 | return null;
|
@@ -531,7 +530,9 @@ public void run() { // not good to make this synchronized, locks things up
|
531 | 530 | try {
|
532 | 531 | Thread.sleep(sleepTime / 1000000L, (int) (sleepTime % 1000000L));
|
533 | 532 | 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 | + } |
535 | 536 |
|
536 | 537 | overSleepTime = (System.nanoTime() - afterTime) - sleepTime;
|
537 | 538 |
|
|
0 commit comments