mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-04-16 12:28:37 -04:00
fix #290, open the keyboard by default at the file editor at empty files
This commit is contained in:
@@ -29,7 +29,6 @@ class ReadTextActivity : SimpleActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_read_text)
|
||||
hideKeyboard()
|
||||
|
||||
handlePermission(PERMISSION_WRITE_STORAGE) {
|
||||
if (it) {
|
||||
@@ -144,5 +143,10 @@ class ReadTextActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
read_text_view.setText(originalText)
|
||||
if (originalText.isNotEmpty()) {
|
||||
hideKeyboard()
|
||||
} else {
|
||||
showKeyboard(read_text_view)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user