From 0ea7b4f80a6589af5a590495123424690c4de4f1 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:02:14 -0400 Subject: New splash screen. --- .../ml/docilealligator/infinityforreddit/activities/MainActivity.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java index 6ce906da..df9274f5 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java @@ -33,6 +33,7 @@ import androidx.appcompat.app.AppCompatDelegate; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; +import androidx.core.splashscreen.SplashScreen; import androidx.drawerlayout.widget.DrawerLayout; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentActivity; @@ -236,6 +237,8 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb @Override protected void onCreate(Bundle savedInstanceState) { + SplashScreen.installSplashScreen(this); + ((Infinity) getApplication()).getAppComponent().inject(this); setTheme(R.style.AppTheme_NoActionBarWithTransparentStatusBar); -- cgit v1.2.3