From 4e6721ca3dd778876fb09aea4b08dad65d802116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EA=B0=80=EB=9E=8C?= <84944117+ImGaram@users.noreply.github.com> Date: Sat, 21 Oct 2023 14:48:52 +0900 Subject: [PATCH 1/2] =?UTF-8?q?:fire:=20::=20handler=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/splash/SplashActivity.kt | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/presentation/src/main/java/com/goms/presentation/view/splash/SplashActivity.kt b/presentation/src/main/java/com/goms/presentation/view/splash/SplashActivity.kt index b3827154..d54b508a 100644 --- a/presentation/src/main/java/com/goms/presentation/view/splash/SplashActivity.kt +++ b/presentation/src/main/java/com/goms/presentation/view/splash/SplashActivity.kt @@ -6,8 +6,6 @@ import android.content.SharedPreferences import android.net.ConnectivityManager import android.net.NetworkCapabilities import android.os.Bundle -import android.os.Handler -import android.os.Looper import androidx.activity.viewModels import androidx.appcompat.app.AppCompatActivity import androidx.lifecycle.lifecycleScope @@ -47,18 +45,16 @@ class SplashActivity : AppCompatActivity() { } private fun checkInternet() { - Handler(Looper.getMainLooper()).postDelayed({ - if (checkIsInterConnected()) { - setInAppUpdate() - - val userOutingSP = getSharedPreferences("userOuting", MODE_PRIVATE) - if (!userOutingSP.contains("outingStatus")) - initSharedPreference(userOutingSP = userOutingSP) - } else { - val dialog = GomsNetworkDialog(retryLogic = { checkInternet() }) - if (!dialog.isAdded) dialog.show(supportFragmentManager, "network") - } - }, 1000) + if (checkIsInterConnected()) { + setInAppUpdate() + + val userOutingSP = getSharedPreferences("userOuting", MODE_PRIVATE) + if (!userOutingSP.contains("outingStatus")) + initSharedPreference(userOutingSP = userOutingSP) + } else { + val dialog = GomsNetworkDialog(retryLogic = { checkInternet() }) + if (!dialog.isAdded) dialog.show(supportFragmentManager, "network") + } } private fun initSharedPreference(userOutingSP: SharedPreferences) { From 2f42ec28346d775892cfea403129ae1ed4f39d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EA=B0=80=EB=9E=8C?= <84944117+ImGaram@users.noreply.github.com> Date: Sat, 21 Oct 2023 14:57:06 +0900 Subject: [PATCH 2/2] =?UTF-8?q?:rocket:=20::=20=EB=B2=84=EC=A0=84=20?= =?UTF-8?q?=EC=97=85=EA=B7=B8=EB=A0=88=EC=9D=B4=EB=93=9C(1.2.4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- presentation/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presentation/build.gradle.kts b/presentation/build.gradle.kts index f76f9ed5..68b1e2f5 100644 --- a/presentation/build.gradle.kts +++ b/presentation/build.gradle.kts @@ -17,8 +17,8 @@ android { applicationId = "com.goms.presentation" minSdk = 26 targetSdk = 33 - versionCode = 11 - versionName = "1.2.3" + versionCode = 12 + versionName = "1.2.4" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"