Ejemplo n.º 1
0
 @Override
 public void surfaceDestroyed(SurfaceHolder holder) {
   mHandler.removeCallbacks(mDrawFrames);
   if (mThread != null) {
     mThread.alive = false;
   }
 }
Ejemplo n.º 2
0
  @Override
  public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
    mHandler.removeCallbacks(mDrawFrames);
    mWidth = width;
    mHeight = height;
    mbgIn = null;
    calculatedItemSpacing(credits, mHeight);

    mThread.alive = false;
    while (mThread.isAlive()) {
      try {
        Thread.sleep(5);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
    mThread = new CreditsThread();
    mThread.start();
  }