From 32e982144a2817486e8ae53759bbd84530fc8932 Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Thu, 16 Feb 2023 13:29:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20=E7=8E=AF=E5=A2=83=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- app/src/main/java/com/huanchengfly/tieba/post/App.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 837848f4..457dcd23 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,7 +15,7 @@ def applicationProperties = new Properties() applicationProperties.load(new FileInputStream(rootProject.file("application.properties"))) def sha = System.getenv("GITHUB_SHA") def isCI = System.getenv("CI") -def isSelfBuild = isCI != "true" +def isSelfBuild = isCI == null || !isCI.equalsIgnoreCase("true") def applicationVersionCode = applicationProperties["versionCode"].toInteger() def applicationVersionName = applicationProperties["versionName"] def isPerVersion = applicationProperties["isPerRelease"] == "true" diff --git a/app/src/main/java/com/huanchengfly/tieba/post/App.kt b/app/src/main/java/com/huanchengfly/tieba/post/App.kt index 2e8cb578..cc1e63f5 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/App.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/App.kt @@ -142,7 +142,7 @@ class App : Application(), IApp, IGetter, SketchFactory { Analytics::class.java, Crashes::class.java, Distribute::class.java ) } - setIcon(keepOld = !BuildConfig.DEBUG && !isSelfBuild) + setIcon(keepOld = BuildConfig.DEBUG || isSelfBuild) AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) ThemeUtils.init(ThemeDelegate) registerActivityLifecycleCallbacks(ClipBoardLinkDetector)