public void stop() { Log.i("OF", "onStop"); disableTouchEvents(); onStop(); for (OFAndroidObject object : OFAndroidObject.ofObjects) { object.onStop(); } unlockScreenSleep(); /*if(OFAndroidSoundStream.isInitialized()) OFAndroidSoundStream.getInstance().stop();*/ }
public void stop() { resumed = false; Log.i("OF", "onStop"); disableTouchEvents(); onStop(); synchronized (OFAndroidObject.ofObjects) { for (OFAndroidObject object : OFAndroidObject.ofObjects) { object.onStop(); } } if (networkStateReceiver != null) { try { ofActivity.unregisterReceiver(networkStateReceiver); } catch (java.lang.IllegalArgumentException e) { } } sleepLocked = false; }