@@ -42,7 +42,7 @@ import com.highcapable.pangutext.android.R
4242import com.highcapable.pangutext.android.core.PanguTextView
4343import com.highcapable.pangutext.android.extension.injectPanguText
4444import com.highcapable.pangutext.android.extension.injectRealTimePanguText
45- import com.highcapable.pangutext.android.generated.PangutextAndroidProperties
45+ import com.highcapable.pangutext.android.generated.PanguTextProperties
4646
4747/* *
4848 * A widgets processor that automatically applies [PanguText] to the text content.
@@ -77,11 +77,11 @@ internal object PanguWidget {
7777
7878 // Catching when the attrs value initialization failed.
7979 runCatching { twoParams?.create(context, attrs) }.onFailure {
80- Log .w(PangutextAndroidProperties .PROJECT_NAME , " Failed to create instance of $viewClass using (Context, AttributeSet)." , it)
80+ Log .w(PanguTextProperties .PROJECT_NAME , " Failed to create instance of $viewClass using (Context, AttributeSet)." , it)
8181 }.getOrNull()
8282 // Try to initialize with the default constructor again, otherwise return null.
8383 ? : runCatching { onceParam?.create(context) }.onFailure {
84- Log .w(PangutextAndroidProperties .PROJECT_NAME , " Failed to create instance of $viewClass , this process will be ignored." , it)
84+ Log .w(PanguTextProperties .PROJECT_NAME , " Failed to create instance of $viewClass , this process will be ignored." , it)
8585 }.getOrNull()
8686 }
8787
@@ -121,7 +121,7 @@ internal object PanguWidget {
121121 val excludePatterns = getStringOrNull(R .styleable.PanguTextHelper_panguText_excludePatterns )
122122 ?.split(TEXT_REGEX_SPLIT_SYMBOL )?.mapNotNull { regex ->
123123 runCatching { regex.toRegex() }.onFailure { th ->
124- Log .e(PangutextAndroidProperties .PROJECT_NAME , " Invalid exclude pattern of $instance : $regex " , th)
124+ Log .e(PanguTextProperties .PROJECT_NAME , " Invalid exclude pattern of $instance : $regex " , th)
125125 }.getOrNull()
126126 }?.toTypedArray() ? : emptyArray()
127127
0 commit comments