content: package io.virtualapp.splash;
  
  import android.os.Bundle;
  import android.view.WindowManager;
  
  import com.lody.virtual.client.core.VirtualCore;
  
  import io.virtualapp.R;
  import io.virtualapp.VCommends;
  import io.virtualapp.abs.ui.VActivity;
  import io.virtualapp.abs.ui.VUiKit;
  import io.virtualapp.home.NewHomeActivity;
  import jonathanfinerty.once.Once;
  
  public class SplashActivity extends VActivity {
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          @SuppressWarnings("unused")
          boolean enterGuide = !Once.beenDone(Once.THIS_APP_INSTALL, VCommends.TAG_NEW_VERSION);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                  WindowManager.LayoutParams.FLAG_FULLSCREEN);
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_splash);
          VUiKit.defer().when(() -> {
              long time = System.currentTimeMillis();
              doActionInThread();
              time = System.currentTimeMillis() - time;
              long delta = 100L - time;
              if (delta > 0) {
                  VUiKit.sleep(delta);
              }
          }).done((res) -> {
              NewHomeActivity.goHome(this);
              finish();
          });
      }
  
      private void doActionInThread() {
          if (!VirtualCore.get().isEngineLaunched()) {
              VirtualCore.get().waitForEngine();
          }
      }
  }
  