예제 #1
0
 public void setScreen(Screen screen) {
   if (screen == null) {
     throw new IllegalArgumentException("Screen must not be null");
   }
   this.screen.pause();
   this.screen.dispose();
   screen.resume();
   screen.update(0);
   this.screen = screen;
 }
예제 #2
0
 public void onResume() {
   super.onResume();
   wakeLock.acquire();
   screen.resume();
   renderView.resume();
 }