mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-10-24 23:58:39 -04:00
fix #290, open the keyboard by default at the file editor at empty files
This commit is contained in:
1 parent
1d4e0984d5
commit
16d315d1b1
1 file changed
+5
-1
+5
-1
@@ -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