Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scl
boilerplate
mobile-moko-boilerplate
Commits
23e3c8fd
Commit
23e3c8fd
authored
Jun 06, 2022
by
a6tak
Browse files
fix detekt
parent
6f33372e
Pipeline
#46812
passed with stages
in 1 minute and 18 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
android-app/src/main/java/org/example/app/view/SplashActivity.kt
View file @
23e3c8fd
...
...
@@ -12,14 +12,13 @@ import okhttp3.Request
import
okhttp3.Response
import
java.io.IOException
@Suppress
(
"Indentation"
)
class
SplashActivity
:
AppCompatActivity
()
{
override
fun
onPostResume
()
{
super
.
onPostResume
()
val
request
:
Request
=
Request
.
Builder
().
url
(
"https://api.github.com/zen"
).
build
()
OkHttpClient
().
newCall
(
request
).
enqueue
(
responseCallback
=
object
:
Callback
{
OkHttpClient
().
newCall
(
request
).
enqueue
(
object
:
Callback
{
override
fun
onFailure
(
call
:
Call
,
e
:
IOException
)
{
print
(
e
.
message
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment