예제 #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
  @Override
  public void onPause() {
    super.onPause();
    wakeLock.release();
    renderView.pause();
    screen.pause();

    if (isFinishing()) {
      screen.dispose();
    }
  }
예제 #3
0
 public void onResume() {
   super.onResume();
   wakeLock.acquire();
   screen.resume();
   renderView.resume();
 }