Fix crashes caused by rendering to a surface on teardown

This commit is contained in:
Cameron Gutman
2013-11-20 00:32:37 -05:00
parent 16d629f5cf
commit 34905dd01e
4 changed files with 15 additions and 7 deletions
+1 -6
View File
@@ -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)