Commit bd693363 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Scroll to the top when setting a new query

parent 2e433c11
......@@ -133,6 +133,7 @@ class QueryLogDetailFragment : Fragment() {
private fun updateUi() {
val query = currentQuery
if(query != null && viewCreated) {
scrollView.scrollTo(0, 0)
hostSourceFetchJob?.cancel()
queryTime.text = formatTimeStamp(query.questionTime)
if(query.responseTime >= query.questionTime) {
......
......@@ -11,6 +11,7 @@
<ScrollView
android:layout_width="match_parent"
android:id="@+id/scrollView"
android:layout_above="@id/createDnsRule"
android:layout_height="match_parent">
......
Supports Markdown
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