From c245fc6dfa7926ef4276dfe1254a863ae4009acb Mon Sep 17 00:00:00 2001 From: kr328 Date: Sun, 16 May 2021 22:56:57 +0800 Subject: [PATCH] Fix: use hardcoded components package name --- .../com/github/kr328/clash/common/constants/Components.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/github/kr328/clash/common/constants/Components.kt b/common/src/main/java/com/github/kr328/clash/common/constants/Components.kt index e3da3269..734a2a0e 100644 --- a/common/src/main/java/com/github/kr328/clash/common/constants/Components.kt +++ b/common/src/main/java/com/github/kr328/clash/common/constants/Components.kt @@ -4,6 +4,8 @@ import android.content.ComponentName import com.github.kr328.clash.common.util.packageName object Components { - val MAIN_ACTIVITY = ComponentName(packageName, "$packageName.MainActivity") - val PROPERTIES_ACTIVITY = ComponentName(packageName, "$packageName.PropertiesActivity") + private const val componentsPackageName = "com.github.kr328.clash" + + val MAIN_ACTIVITY = ComponentName(packageName, "$componentsPackageName.MainActivity") + val PROPERTIES_ACTIVITY = ComponentName(packageName, "$componentsPackageName.PropertiesActivity") } \ No newline at end of file