From eafb92de4a64956e5ee89c0ee1683f0b2e0848bb Mon Sep 17 00:00:00 2001 From: Son Myeongji Date: Fri, 5 Apr 2024 15:18:40 +0900 Subject: [PATCH 01/15] =?UTF-8?q?feat=20:=2033=20=EB=B2=84=EC=A0=84=20?= =?UTF-8?q?=EB=AF=B8=EB=A7=8C=20=EC=8A=A4=ED=94=8C=EB=9E=98=EC=8B=9C=20?= =?UTF-8?q?=EC=95=88=20=EB=9C=A8=EB=8A=94=20=EC=9D=B4=EC=8A=88=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../youdongknowme/ui/view/splash/SplashActivity.kt | 11 +++-------- app/src/main/res/values/themes.xml | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/dongyang/android/youdongknowme/ui/view/splash/SplashActivity.kt b/app/src/main/java/com/dongyang/android/youdongknowme/ui/view/splash/SplashActivity.kt index 63f27b95..a5a2b78a 100644 --- a/app/src/main/java/com/dongyang/android/youdongknowme/ui/view/splash/SplashActivity.kt +++ b/app/src/main/java/com/dongyang/android/youdongknowme/ui/view/splash/SplashActivity.kt @@ -2,10 +2,9 @@ package com.dongyang.android.youdongknowme.ui.view.splash import android.Manifest import android.annotation.SuppressLint -import android.content.Intent import android.content.pm.PackageManager import android.os.Build -import android.view.View +import androidx.annotation.RequiresApi import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import androidx.lifecycle.lifecycleScope @@ -28,11 +27,6 @@ class SplashActivity : BaseActivity() { private var intentJob: Job? = null override fun initStartView() { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { - val content: View = findViewById(android.R.id.content) - content.viewTreeObserver.addOnPreDrawListener { false } - } - viewModel.checkFirstLaunch() } @@ -52,6 +46,7 @@ class SplashActivity : BaseActivity() { } } + @RequiresApi(Build.VERSION_CODES.TIRAMISU) override fun onRequestPermissionsResult( requestCode: Int, permissions: Array, @@ -100,7 +95,7 @@ class SplashActivity : BaseActivity() { } companion object { - private const val SPLASH_TIME_MILLIS = 1_500L + private const val SPLASH_TIME_MILLIS = 3_000L private const val REQUEST_PERMISSION_CODE = 100 } } \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 20afd528..8bdea4af 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -18,7 +18,7 @@ - +