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) } } }