From 9d5822cff4bf46c466b14811cf8dbbd9db09a643 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Sep 2019 10:42:30 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/main/bookshelf/BookshelfFragment.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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() }