pull/1391/head
gedoor 3 years ago
parent 94651df038
commit 46f5a4d41a
  1. 5
      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<VB : ViewBinding>(
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)
}
}
}

Loading…
Cancel
Save