diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/category/CategoryHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/category/CategoryHolder.kt index 405df98b6b..b0330be2cb 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/category/CategoryHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/category/CategoryHolder.kt @@ -3,7 +3,6 @@ package eu.kanade.tachiyomi.ui.category import android.annotation.SuppressLint import android.content.Context import android.graphics.drawable.Drawable -import android.text.InputType import android.view.View import android.view.WindowManager import android.view.inputmethod.EditorInfo @@ -80,7 +79,6 @@ class CategoryHolder(view: View, val adapter: CategoryAdapter) : BaseFlexibleVie binding.title.visibility = if (editing) View.INVISIBLE else View.VISIBLE binding.editText.visibility = if (!editing) View.INVISIBLE else View.VISIBLE if (editing) { - binding.editText.inputType = InputType.TYPE_TEXT_FLAG_AUTO_CORRECT binding.editText.requestFocus() binding.editText.selectAll() binding.editButton.setImageDrawable(ContextCompat.getDrawable(itemView.context, R.drawable.ic_check_24dp)) @@ -123,7 +121,6 @@ class CategoryHolder(view: View, val adapter: CategoryAdapter) : BaseFlexibleVie .onCategoryRename(flexibleAdapterPosition, binding.editText.text.toString()) ) { isEditing(false) - binding.editText.inputType = InputType.TYPE_NULL if (!createCategory) { binding.title.text = binding.editText.text.toString() } diff --git a/app/src/main/res/layout/categories_item.xml b/app/src/main/res/layout/categories_item.xml index 13f4e903ae..1f73be7a5c 100644 --- a/app/src/main/res/layout/categories_item.xml +++ b/app/src/main/res/layout/categories_item.xml @@ -51,6 +51,7 @@ android:background="@null" android:imeOptions="actionDone" android:inputType="textCapSentences" + android:hint="@string/category" android:maxLines="1" android:singleLine="true" android:textColor="?android:attr/textColorPrimary" @@ -59,7 +60,8 @@ app:layout_constraintTop_toTopOf="@id/title" app:layout_constraintBottom_toBottomOf="@id/title" app:layout_constraintStart_toStartOf="@id/title" - tools:text="Title" /> + tools:text="Title" + android:autofillHints="" />