From 46f5a4d41a16ae7b3d9a6973836a4f67c62b06ba Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 19 Oct 2021 08:14:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/base/BaseActivity.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/base/BaseActivity.kt b/app/src/main/java/io/legado/app/base/BaseActivity.kt index 238dc23d2..c2930602a 100644 --- a/app/src/main/java/io/legado/app/base/BaseActivity.kt +++ b/app/src/main/java/io/legado/app/base/BaseActivity.kt @@ -14,6 +14,7 @@ import androidx.appcompat.app.AppCompatActivity import androidx.viewbinding.ViewBinding import io.legado.app.R import io.legado.app.constant.AppConst +import io.legado.app.constant.AppLog import io.legado.app.constant.Theme import io.legado.app.help.AppConfig import io.legado.app.help.ThemeConfig @@ -148,9 +149,9 @@ abstract class BaseActivity( window.decorView.background = BitmapDrawable(resources, it) } } catch (e: OutOfMemoryError) { - toastOnUi(e.localizedMessage) + toastOnUi("背景太大,内存溢出") } catch (e: Exception) { - toastOnUi(e.localizedMessage) + AppLog.put("加载背景出错\n${e.localizedMessage}", e) } } }