superstitiously remove synchronization of overridden lifecycle method

This commit is contained in:
Aaron Culliney 2015-09-27 13:31:55 -07:00
parent b5de4222c3
commit 339d037d4e

View File

@ -176,10 +176,13 @@ public class Apple2Activity extends Activity {
} }
@Override @Override
protected synchronized void onPause() { protected void onPause() {
super.onPause(); super.onPause();
mPausing.set(true); boolean wasPausing = mPausing.getAndSet(true);
if (wasPausing) {
return;
}
Log.d(TAG, "onPause()"); Log.d(TAG, "onPause()");
mView.onPause(); mView.onPause();