Ejemplo n.º 1
0
 public static void setScreen(Screen screen) {
   // We can only dispose if currentScreen has screen contents
   if (currentScreen != null)
     // Disposes the previous currentScreen screen contents
     currentScreen.dispose();
   currentScreen = screen;
   // Creates currentScreen with contents of screen
   currentScreen.create();
 }
Ejemplo n.º 2
0
 /** Dispose Alert. */
 void dispose() {
   super.dispose();
   ESWTUIThreadRunner.syncExec(
       new Runnable() {
         public void run() {
           topShell.dispose();
         }
       });
 }
  @Override
  public void onPause() {
    super.onPause();
    wakeLock.release();
    renderView.pause();
    screen.pause();

    if (isFinishing()) {
      screen.dispose();
    }
  }
Ejemplo n.º 4
0
 public static void setScreen(Screen screen) {
   if (currentScreen != null) currentScreen.dispose();
   currentScreen = screen;
   currentScreen.create();
 }