INNER CODE UNIT · Kotlin

timedOut

PranshulGG/WeatherMaster · app/src/main/java/com/pranshulgg/weather_master_app/MainActivity.kt:43

            val timedOut = System.currentTimeMillis() - startTime > 5000

            !initialized && !timedOut
        }
        initPrefs(this)
        super.onCreate(savedInstanceState)
        val theme = PreferencesHelper.getString("app_theme") ?: "Dark"

        val isDark = resolveThemeDark(
            theme,
            resources.configuration.uiMode and
                    android.content.res.Configuration.UI_MODE_NIGHT_MASK ==
                    android.content.res.Configuration.UI_MODE_NIGHT_YES
        )

        enableEdgeToEdge(
            navigationBarStyle = if (isDark) {
                SystemBarStyle.dark(Color.TRANSPARENT)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…