From 74e3076a1ddd0d3dce30853c432f0ab0db2ea76c Mon Sep 17 00:00:00 2001 From: d3rt0xx <98334773+d3rt0xx@users.noreply.github.com> Date: Mon, 15 Aug 2022 20:38:17 +0200 Subject: [PATCH] Added Splash Screen --- .../main/java/app/d3rt0xx/flyffdroid/MainActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/app/d3rt0xx/flyffdroid/MainActivity.java b/app/src/main/java/app/d3rt0xx/flyffdroid/MainActivity.java index 5c66df0..0029a19 100644 --- a/app/src/main/java/app/d3rt0xx/flyffdroid/MainActivity.java +++ b/app/src/main/java/app/d3rt0xx/flyffdroid/MainActivity.java @@ -21,23 +21,23 @@ import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; +import androidx.core.splashscreen.SplashScreen; import java.util.Objects; public class MainActivity extends AppCompatActivity { + String rotationlock = "unlocked"; + Menu optionMenu; private WebView mClientWebView, sClientWebView; private FrameLayout mClient, sClient; private LinearLayout linearLayout; private Boolean exit = false, isOpen = false; private TinyDB tinyDB; - String rotationlock = "unlocked"; - - Menu optionMenu; - @Override protected void onCreate(Bundle savedInstanceState) { + SplashScreen splashScreen = SplashScreen.installSplashScreen(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);