Skip to content

Commit 3d8b1dd

Browse files
committed
Update
1 parent 3f5b1b5 commit 3d8b1dd

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

app/src/main/java/com/tool/tree/TextEditorActivity.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -690,13 +690,6 @@ class TextEditorActivity : AppCompatActivity() {
690690
}
691691
setupSyntaxHighlighting()
692692
updateLineNumbersInternal()
693-
694-
// Ép ScrollView quay lại đầu file: tránh việc EditText tự
695-
// cuộn theo vị trí con trỏ (cuối file) ngay khi vừa mở file,
696-
// gây ra khoảng trống/nhảy vị trí ngay dưới toolbar.
697-
binding.mainList.post {
698-
binding.mainList.scrollTo(0, 0)
699-
}
700693
}
701694
}
702695
}
@@ -918,4 +911,4 @@ class TextEditorActivity : AppCompatActivity() {
918911
).apply { isCancelable = false }
919912
.show(supportFragmentManager, "editor-run-test")
920913
}
921-
}
914+
}

0 commit comments

Comments
 (0)