From eb6f8f21614db5eedd443bb833884d4cd71ec52e Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 5 Jan 2019 23:00:30 -0500 Subject: Prepare next release --- app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt index 7622ff5c..d0376144 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt @@ -44,7 +44,6 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.withContext import java.util.ArrayList -import java.util.IllegalFormatException /** * Created by Allan Wang on 2017-05-28. @@ -95,11 +94,7 @@ class StartActivity : KauBaseActivity() { showInvalidView(R.string.error_webview) private fun showInvalidSdkView() { - val text = try { - String.format(string(R.string.error_sdk), Build.VERSION.SDK_INT) - } catch (e: IllegalFormatException) { - string(R.string.error_sdk) - } + val text = String.format(string(R.string.error_sdk), Build.VERSION.SDK_INT) showInvalidView(text) } -- cgit v1.2.3