hide the keyboard at using Open file and Export as file
This commit is contained in:
parent
d2d4186d2e
commit
d2e582419e
|
@ -616,6 +616,7 @@ class MainActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun tryOpenFile() {
|
private fun tryOpenFile() {
|
||||||
|
hideKeyboard()
|
||||||
if (hasPermission(PERMISSION_READ_STORAGE)) {
|
if (hasPermission(PERMISSION_READ_STORAGE)) {
|
||||||
openFile()
|
openFile()
|
||||||
} else {
|
} else {
|
||||||
|
@ -804,6 +805,7 @@ class MainActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun tryExportAsFile() {
|
private fun tryExportAsFile() {
|
||||||
|
hideKeyboard()
|
||||||
if (hasPermission(PERMISSION_WRITE_STORAGE)) {
|
if (hasPermission(PERMISSION_WRITE_STORAGE)) {
|
||||||
exportAsFile()
|
exportAsFile()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue