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