Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
App Lounge
Commits
47045398
Commit
47045398
authored
Mar 17, 2021
by
narinder Rana
Browse files
manage Toast using handler
parent
2636a818
Pipeline
#106503
passed with stage
in 5 minutes and 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/apps/application/model/IntegrityVerificationTask.kt
View file @
47045398
...
@@ -19,6 +19,8 @@ package foundation.e.apps.application.model
...
@@ -19,6 +19,8 @@ package foundation.e.apps.application.model
import
android.content.Context
import
android.content.Context
import
android.os.AsyncTask
import
android.os.AsyncTask
import
android.os.Handler
import
android.os.Looper
import
android.widget.Toast
import
android.widget.Toast
import
foundation.e.apps.R
import
foundation.e.apps.R
import
foundation.e.apps.application.model.data.FullData
import
foundation.e.apps.application.model.data.FullData
...
@@ -132,8 +134,14 @@ class IntegrityVerificationTask(
...
@@ -132,8 +134,14 @@ class IntegrityVerificationTask(
return
signature
.
verify
()
return
signature
.
verify
()
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
e
.
printStackTrace
()
Toast
.
makeText
(
context
,
context
.
resources
.
getString
(
R
.
string
.
Signature_verification_failed
),
Toast
.
LENGTH_LONG
).
show
();
Handler
(
Looper
.
getMainLooper
()).
post
{
val
toast
=
Toast
.
makeText
(
context
,
context
.
resources
.
getString
(
R
.
string
.
Signature_verification_failed
),
Toast
.
LENGTH_LONG
)
toast
.
show
()
}
}
}
return
false
;
return
false
;
}
}
...
...
Write
Preview
Supports
Markdown
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