diff options
author | Allan Wang <me@allanwang.ca> | 2019-01-05 23:00:30 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-01-05 23:00:30 -0500 |
commit | eb6f8f21614db5eedd443bb833884d4cd71ec52e (patch) | |
tree | aca585a0b7c80ec8599fc4d504d040817e6ad470 /app/src/main/kotlin | |
parent | 52e140256f466c35cc040d1fa0c76892dfe64084 (diff) | |
download | frost-eb6f8f21614db5eedd443bb833884d4cd71ec52e.tar.gz frost-eb6f8f21614db5eedd443bb833884d4cd71ec52e.tar.bz2 frost-eb6f8f21614db5eedd443bb833884d4cd71ec52e.zip |
Prepare next releasev2.2.1
Diffstat (limited to 'app/src/main/kotlin')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/StartActivity.kt | 7 |
1 files changed, 1 insertions, 6 deletions
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) } |