diff --git a/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt index 8dfa25975..724152c15 100644 --- a/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/local/ImportBookActivity.kt @@ -15,8 +15,10 @@ import io.legado.app.R import io.legado.app.base.VMBaseActivity import io.legado.app.data.appDb import io.legado.app.databinding.ActivityImportBookBinding +import io.legado.app.databinding.DialogEditTextBinding import io.legado.app.help.AppConfig import io.legado.app.lib.permission.Permissions +import io.legado.app.lib.dialogs.alert import io.legado.app.lib.permission.PermissionsCompat import io.legado.app.lib.theme.backgroundColor import io.legado.app.ui.document.FilePicker @@ -78,6 +80,7 @@ class ImportBookActivity : VMBaseActivity selectFolder.launch(null) R.id.menu_scan_folder -> scanFolder() + R.id.menu_import_file_name -> alertImportFileName() } return super.onCompatOptionsItemSelected(item) } @@ -275,6 +278,19 @@ class ImportBookActivity : VMBaseActivity Unit = { launch { adapter.addItem(it) @@ -322,4 +338,4 @@ class ImportBookActivity : VMBaseActivity