Skip to content
Snippets Groups Projects
Commit 65ccd764 authored by yansans's avatar yansans
Browse files

fix: finish main activity after exp

parent 633a9eac
1 merge request!13Release
......@@ -32,8 +32,8 @@ class JwtService : Service() {
if (token != null) {
verifyJwt(applicationContext, token)
}
// 5 second
handler.postDelayed(this, 5000)
// 10 second
handler.postDelayed(this, 10000)
}
}
......@@ -108,7 +108,7 @@ class JwtService : Service() {
Toast.makeText(applicationContext, "Session Expired! \n Logging out ...", Toast.LENGTH_LONG).show()
val intent = Intent(applicationContext, LoginActivity::class.java)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
startActivity(intent)
stopSelf()
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment