Skip to content

Commit

Permalink
Versão 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigmatrix committed Jun 14, 2019
1 parent 8546bb6 commit d5eaaa1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class DisciplinasFragment : Fragment(), CoroutineScope {
}
val jsession = database.studentDao().getStudent().jsession
swiperefresh.isRefreshing = true
launch{
launch(handler){
setClasses(jsession, database)
}
}
Expand All @@ -67,11 +67,11 @@ class DisciplinasFragment : Fragment(), CoroutineScope {
}
private val handler = CoroutineExceptionHandler { _, throwable ->
runOnUiThread {
job.cancel()
swiperefresh?.isRefreshing = false
coroutineContext.cancel()
Snackbar.make(view!!, "Erro ao exibir disciplinas. Por favor, me envie um email(email na tela sobre)", Snackbar.LENGTH_LONG).show()
}
job.cancel()
coroutineContext.cancel()
Log.e("Exception", ":$throwable")
}

Expand Down

0 comments on commit d5eaaa1

Please sign in to comment.