mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
修复bug
This commit is contained in:
parent
d729043e43
commit
78ba6a7069
@ -1,4 +1,4 @@
|
||||
package io.legado.app.ui.widget.text
|
||||
package io.legado.app.lib.theme.view
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
@ -9,7 +9,7 @@ import io.legado.app.utils.applyTint
|
||||
/**
|
||||
* @author Aidan Follestad (afollestad)
|
||||
*/
|
||||
class EditText(context: Context, attrs: AttributeSet) : AppCompatEditText(context, attrs) {
|
||||
class ThemeEditText(context: Context, attrs: AttributeSet) : AppCompatEditText(context, attrs) {
|
||||
|
||||
init {
|
||||
if (!isInEditMode) {
|
@ -73,6 +73,8 @@ class WebViewActivity : VMBaseActivity<ActivityWebViewBinding, WebViewModel>() {
|
||||
mixedContentMode = WebSettings.MIXED_CONTENT_ALWAYS_ALLOW
|
||||
domStorageEnabled = true
|
||||
allowContentAccess = true
|
||||
useWideViewPort = true
|
||||
loadWithOverviewMode = true
|
||||
}
|
||||
binding.webView.addJavascriptInterface(this, "app")
|
||||
upWebViewTheme()
|
||||
|
@ -5,6 +5,7 @@ import android.os.Bundle
|
||||
import android.text.InputType
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.EditText
|
||||
import android.widget.TextView
|
||||
import androidx.core.view.setPadding
|
||||
import androidx.fragment.app.activityViewModels
|
||||
@ -14,7 +15,6 @@ import io.legado.app.constant.AppLog
|
||||
import io.legado.app.data.entities.BaseSource
|
||||
import io.legado.app.databinding.DialogLoginBinding
|
||||
import io.legado.app.lib.theme.primaryColor
|
||||
import io.legado.app.ui.widget.text.EditText
|
||||
import io.legado.app.ui.widget.text.TextInputLayout
|
||||
import io.legado.app.utils.*
|
||||
import io.legado.app.utils.viewbindingdelegate.viewBinding
|
||||
|
@ -48,7 +48,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/book_name">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/tie_book_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -61,7 +61,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/author">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/tie_book_author"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -78,7 +78,7 @@
|
||||
android:layout_marginTop="5dp"
|
||||
android:hint="@string/cover_path">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/tie_cover_url"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
@ -125,7 +125,7 @@
|
||||
android:layout_marginTop="10dp"
|
||||
android:hint="@string/book_intro">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/tie_book_intro"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
@ -33,7 +33,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/replace_rule_summary">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -46,7 +46,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/group">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -59,7 +59,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/replace_rule">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_replace_rule"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -96,7 +96,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/replace_to">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_replace_to"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -109,7 +109,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/use_to">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_scope"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -45,7 +45,7 @@
|
||||
app:layout_constraintTop_toBottomOf="@+id/tool_bar"
|
||||
app:layout_constraintBottom_toTopOf="@+id/btn_ok">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/tie_group_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -39,7 +39,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="3dp">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/edit_book_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -53,7 +53,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="3dp">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/edit_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -31,7 +31,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="3dp">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/edit_upload_url"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -45,7 +45,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="3dp">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/edit_download_url_rule"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -59,7 +59,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="3dp">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/edit_summary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -29,7 +29,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/name">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -22,7 +22,7 @@
|
||||
android:layout_margin="5dp"
|
||||
android:hint="@string/prev_page_key">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_prev"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -36,7 +36,7 @@
|
||||
android:layout_margin="5dp"
|
||||
android:hint="@string/next_page_key">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_next"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -34,7 +34,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/name">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
@ -47,7 +47,7 @@
|
||||
android:hint="Url"
|
||||
tools:ignore="HardcodedText">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/et_url"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
@ -13,7 +13,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/name">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/tv_rule_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -26,7 +26,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/regex">
|
||||
|
||||
<io.legado.app.ui.widget.text.EditText
|
||||
<io.legado.app.lib.theme.view.ThemeEditText
|
||||
android:id="@+id/tv_rule_regex"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
Loading…
Reference in New Issue
Block a user