mirror of
https://github.com/BetterAndroid/PanguText.git
synced 2025-09-04 01:35:37 +08:00
refactor: change ids tag name in PanguText
This commit is contained in:
@@ -75,7 +75,7 @@ fun TextView.injectPanguText(injectHint: Boolean = true, config: PanguTextConfig
|
|||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
fun TextView.injectRealTimePanguText(injectHint: Boolean = true, config: PanguTextConfig = PanguText.globalConfig) {
|
fun TextView.injectRealTimePanguText(injectHint: Boolean = true, config: PanguTextConfig = PanguText.globalConfig) {
|
||||||
if (!config.isEnabled) return
|
if (!config.isEnabled) return
|
||||||
val observerKey = R.id.flag_inject_real_time_pangu_text
|
val observerKey = R.id.tag_inject_real_time_pangu_text
|
||||||
if (getTag<Boolean>(observerKey) == true) return run {
|
if (getTag<Boolean>(observerKey) == true) return run {
|
||||||
Log.w(PangutextAndroidProperties.PROJECT_NAME, "Duplicate injection of real-time PanguText ($this).")
|
Log.w(PangutextAndroidProperties.PROJECT_NAME, "Duplicate injection of real-time PanguText ($this).")
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<id name="flag_inject_real_time_pangu_text" type="id" />
|
<id name="tag_inject_real_time_pangu_text" type="id" />
|
||||||
</resources>
|
</resources>
|
Reference in New Issue
Block a user