Skip to content

Commit 9148d29

Browse files
committed
refactor: change ids tag name in PanguText
1 parent 9ae8f83 commit 9148d29

File tree

2 files changed

+2
-2
lines changed
  • pangutext-android/src/main

2 files changed

+2
-2
lines changed

pangutext-android/src/main/java/com/highcapable/pangutext/android/extension/PanguText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fun TextView.injectPanguText(injectHint: Boolean = true, config: PanguTextConfig
7575
@JvmOverloads
7676
fun TextView.injectRealTimePanguText(injectHint: Boolean = true, config: PanguTextConfig = PanguText.globalConfig) {
7777
if (!config.isEnabled) return
78-
val observerKey = R.id.flag_inject_real_time_pangu_text
78+
val observerKey = R.id.tag_inject_real_time_pangu_text
7979
if (getTag<Boolean>(observerKey) == true) return run {
8080
Log.w(PangutextAndroidProperties.PROJECT_NAME, "Duplicate injection of real-time PanguText ($this).")
8181
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<id name="flag_inject_real_time_pangu_text" type="id" />
3+
<id name="tag_inject_real_time_pangu_text" type="id" />
44
</resources>

0 commit comments

Comments
 (0)