mirror of
https://github.com/BetterAndroid/PanguText.git
synced 2025-09-01 08:15:21 +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
|
||||
fun TextView.injectRealTimePanguText(injectHint: Boolean = true, config: PanguTextConfig = PanguText.globalConfig) {
|
||||
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 {
|
||||
Log.w(PangutextAndroidProperties.PROJECT_NAME, "Duplicate injection of real-time PanguText ($this).")
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<id name="flag_inject_real_time_pangu_text" type="id" />
|
||||
<id name="tag_inject_real_time_pangu_text" type="id" />
|
||||
</resources>
|
Reference in New Issue
Block a user