From 2bd3990404ffdac3fb8bbba44424b8820104bda2 Mon Sep 17 00:00:00 2001 From: chenjuntao Date: Fri, 16 Sep 2022 16:51:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=A1=B6=E9=83=A8=E4=B8=8B=E8=BD=BD=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=BA=A2=E7=82=B9=E5=92=8C=E6=95=B0=E5=AD=97=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/gh/base/DownloadToolbarActivity.kt | 3 +-- module_core/src/main/res/values-night/colors.xml | 9 --------- module_core/src/main/res/values-night/themes.xml | 16 ---------------- 3 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 module_core/src/main/res/values-night/colors.xml delete mode 100644 module_core/src/main/res/values-night/themes.xml diff --git a/app/src/main/java/com/gh/base/DownloadToolbarActivity.kt b/app/src/main/java/com/gh/base/DownloadToolbarActivity.kt index 562588245a..a43f4662dd 100644 --- a/app/src/main/java/com/gh/base/DownloadToolbarActivity.kt +++ b/app/src/main/java/com/gh/base/DownloadToolbarActivity.kt @@ -6,7 +6,6 @@ import android.view.MenuItem import android.view.View import android.widget.ImageView import android.widget.TextView -import androidx.core.content.ContextCompat import com.gh.download.DownloadManager import com.gh.gamecenter.DownloadManagerActivity import com.gh.gamecenter.R @@ -72,7 +71,7 @@ abstract class DownloadToolbarActivity : ToolBarActivity() { } private fun updateDownloadCountHint(updateList: List?) { - if (mDownloadCountHint == null || updateList.isNullOrEmpty()) return + if (mDownloadCountHint == null) return val count = DownloadManager.getInstance().getDownloadOrUpdateCount(updateList) if (count != null) { mDownloadCountHint!!.visibility = View.VISIBLE diff --git a/module_core/src/main/res/values-night/colors.xml b/module_core/src/main/res/values-night/colors.xml deleted file mode 100644 index 388508876e..0000000000 --- a/module_core/src/main/res/values-night/colors.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - #5C8399 - #5C9599 - #6F5EA8 - #996283 - #748054 - #946262 - \ No newline at end of file diff --git a/module_core/src/main/res/values-night/themes.xml b/module_core/src/main/res/values-night/themes.xml deleted file mode 100644 index 757059b8ed..0000000000 --- a/module_core/src/main/res/values-night/themes.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - \ No newline at end of file