mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-16 20:00:36 +01:00
fix #290, open the keyboard by default at the file editor at empty files
This commit is contained in:
parent
1d4e0984d5
commit
16d315d1b1
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user