diff --git a/app/src/main/assets/html/changelogs.html b/app/src/main/assets/html/changelogs.html index 654687c8c..2754c9a59 100644 --- a/app/src/main/assets/html/changelogs.html +++ b/app/src/main/assets/html/changelogs.html @@ -31,6 +31,7 @@

User Interface


Can be toggled in Development Preferences. +
  • Added suggestions for devices with really long loading time.
  • Bug Fixes

    diff --git a/app/src/main/java/app/simple/inure/constants/Warnings.kt b/app/src/main/java/app/simple/inure/constants/Warnings.kt index be38acdee..b1ee83d29 100644 --- a/app/src/main/java/app/simple/inure/constants/Warnings.kt +++ b/app/src/main/java/app/simple/inure/constants/Warnings.kt @@ -82,4 +82,9 @@ object Warnings { * Root or shizuku required to change the state */ const val ROOT_OR_SHIZUKU_REQUIRED = "0x010: Root or Shizuku required to change the state" + + /** + * If you're experiencing longer loading times, you can always disable startup loading from Preferences -> Behavior + */ + const val LONG_LOADING_TIME = "0x011: If you're experiencing longer loading times, you can always disable startup loading from Preferences -> Behavior" } diff --git a/app/src/main/java/app/simple/inure/ui/launcher/SplashScreen.kt b/app/src/main/java/app/simple/inure/ui/launcher/SplashScreen.kt index 2df3b7bee..01598402f 100644 --- a/app/src/main/java/app/simple/inure/ui/launcher/SplashScreen.kt +++ b/app/src/main/java/app/simple/inure/ui/launcher/SplashScreen.kt @@ -30,6 +30,7 @@ import app.simple.inure.BuildConfig import app.simple.inure.R import app.simple.inure.apk.utils.PackageUtils.isPackageInstalled import app.simple.inure.constants.BundleConstants +import app.simple.inure.constants.Warnings import app.simple.inure.crash.CrashReport import app.simple.inure.decorations.typeface.TypeFaceTextView import app.simple.inure.decorations.views.LoaderImageView @@ -192,6 +193,10 @@ class SplashScreen : ScopedFragment() { } private fun proceed() { + postDelayed(12_000) { + showWarning(Warnings.LONG_LOADING_TIME, goBack = false) + } + val appsViewModel = ViewModelProvider(requireActivity())[AppsViewModel::class.java] val usageStatsData = ViewModelProvider(requireActivity())[UsageStatsViewModel::class.java] val sensorsViewModel = ViewModelProvider(requireActivity())[SensorsViewModel::class.java]