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; }
public void onResume() { super.onResume(); wakeLock.acquire(); screen.resume(); renderView.resume(); }