diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt index 92a405b4c..94b17e6dc 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfFragment.kt @@ -1,5 +1,6 @@ package io.legado.app.ui.main.bookshelf +import android.annotation.SuppressLint import android.os.Bundle import android.view.Menu import android.view.MenuItem @@ -130,10 +131,10 @@ class BookshelfFragment : VMBaseFragment(R.layout.fragment_b return false } + @SuppressLint("InflateParams") private fun showGroupInputDialog() { alert(title = "新建分组") { var editText: EditText? = null - customView { layoutInflater.inflate(R.layout.dialog_edittext, null).apply { editText = edit_view.apply { @@ -142,13 +143,10 @@ class BookshelfFragment : VMBaseFragment(R.layout.fragment_b } } } - yesButton { viewModel.saveBookGroup(editText?.text?.toString()) } - noButton() - }.show().applyTint().requestInputMethod() }