Fix crashes caused by rendering to a surface on teardown
This commit is contained in:
@@ -86,16 +86,11 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
conn.stop();
|
||||
finish();
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
conn.stop();
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTrimMemory(int trimLevel) {
|
||||
if (trimLevel >= ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW)
|
||||
|
||||
Reference in New Issue
Block a user