Skip to content
Snippets Groups Projects
Verified Commit 84f3e51f authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes #151

parent 13c1896c
No related branches found
No related tags found
Loading
Pipeline #256 passed
...@@ -89,7 +89,7 @@ class CrashFragment : DaggerFragment() { ...@@ -89,7 +89,7 @@ class CrashFragment : DaggerFragment() {
.map { Pair<Report, String>(gson.fromJson(it), it) } .map { Pair<Report, String>(gson.fromJson(it), it) }
.sortedByDescending { it.first.environment?.crashTime } .sortedByDescending { it.first.environment?.crashTime }
requireActivity().runOnUiThread { activity?.runOnUiThread {
this.adapter?.submitList(list) this.adapter?.submitList(list)
} }
} }
...@@ -109,7 +109,7 @@ class CrashFragment : DaggerFragment() { ...@@ -109,7 +109,7 @@ class CrashFragment : DaggerFragment() {
crashDir?.listFiles()?.forEach { crashDir?.listFiles()?.forEach {
it.delete() it.delete()
} }
requireActivity().runOnUiThread { activity?.runOnUiThread {
this.adapter?.submitList(emptyList()) this.adapter?.submitList(emptyList())
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment