예제 #1
0
  public void resume() {
    if (mGLView == null || resumed) return;
    resumed = true;
    Log.i("OF", "onResume");
    enableTouchEvents();
    mGLView.onResume();
    synchronized (OFAndroidObject.ofObjects) {
      for (OFAndroidObject object : OFAndroidObject.ofObjects) {
        object.onResume();
      }
    }

    if (mGLView.isSetup()) {
      Log.i("OF", "resume view and native");
      onResume();
    }

    if (OFAndroid.orientation != -1) OFAndroid.setScreenOrientation(OFAndroid.orientation);

    if (networkStateReceiver != null) {
      monitorNetworkState();
    }
  }
예제 #2
0
 public static void registerNetworkStateReceiver() {
   if (OFAndroid.networkStateReceiver != null) {
     OFAndroid.monitorNetworkState();
   }
 }