Esempio n. 1
0
  public void pause() {
    Log.i("OF", "onPause");
    disableTouchEvents();
    mGLView.onPause();
    onPause();

    for (OFAndroidObject object : OFAndroidObject.ofObjects) {
      object.onPause();
    }

    unlockScreenSleep();
  }
Esempio n. 2
0
  public void pause() {
    Log.i("OF", "onPause");
    disableTouchEvents();

    onPause();

    synchronized (OFAndroidObject.ofObjects) {
      for (OFAndroidObject object : OFAndroidObject.ofObjects) {
        object.onPause();
      }
    }
    if (mGLView != null) mGLView.onPause();
    if (networkStateReceiver != null) {
      try {
        ofActivity.unregisterReceiver(networkStateReceiver);
      } catch (java.lang.IllegalArgumentException e) {

      }
    }

    sleepLocked = false;
    resumed = false;
  }