// part of SurfaceHolder.Callback @Override public void surfaceDestroyed(SurfaceHolder holder) { super.surfaceDestroyed(holder); if (PApplet.DEBUG) { System.out.println("surfaceDestroyed()"); } /* // TODO: Check how to make sure of calling g3.dispose() when this call to // surfaceDestoryed corresponds to the sketch being shut down instead of just // taken to the background. // For instance, something like this would be ok? // The sketch is being stopped, so we dispose the resources. if (!paused) { g3.dispose(); } */ }
@Override public void surfaceDestroyed(SurfaceHolder holder) { super.surfaceDestroyed(holder); OFAndroid.onSurfaceDestroyed(); }
/*----------------------onBackPressed--------------------------------------------------------------------*/ public void onBackPressed() { Log.d(TAG, "onBackPressed"); super.surfaceDestroyed(getHolder()); // MidasNative.onBackPressed(); }
@Override public void surfaceDestroyed(SurfaceHolder holder) { mHaveSurface = false; super.surfaceDestroyed(holder); }
@Override public void surfaceDestroyed(SurfaceHolder holder) { mSurfaceCreated = false; mSurfaceDestroyed = true; super.surfaceDestroyed(holder); }