mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02: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?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.activity_read_text)
|
setContentView(R.layout.activity_read_text)
|
||||||
hideKeyboard()
|
|
||||||
|
|
||||||
handlePermission(PERMISSION_WRITE_STORAGE) {
|
handlePermission(PERMISSION_WRITE_STORAGE) {
|
||||||
if (it) {
|
if (it) {
|
||||||
@ -144,5 +143,10 @@ class ReadTextActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
read_text_view.setText(originalText)
|
read_text_view.setText(originalText)
|
||||||
|
if (originalText.isNotEmpty()) {
|
||||||
|
hideKeyboard()
|
||||||
|
} else {
|
||||||
|
showKeyboard(read_text_view)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user