@Override public void onResume() { super.onResume(); mActivityLifecycleListener.onActivityResumed(this); JniInterface.enableVideoChannel(true); startActionBarAutoHideTimer(); }
@Override protected void onStart() { super.onStart(); mActivityLifecycleListener.onActivityStarted(this); JniInterface.enableVideoChannel(true); mRemoteHostDesktop.attachRedrawCallback(); }
@Override protected void onPause() { if (isFinishing()) mActivityLifecycleListener.onActivityPaused(this); super.onPause(); if (!mSwitchToCardboardDesktopActivity) { JniInterface.enableVideoChannel(false); } stopActionBarAutoHideTimer(); }
@Override protected void onStop() { mActivityLifecycleListener.onActivityStopped(this); super.onStop(); if (mSwitchToCardboardDesktopActivity) { mSwitchToCardboardDesktopActivity = false; } else { JniInterface.enableVideoChannel(false); } }