|
|
@ -149,7 +149,7 @@ abstract class BaseActivity<VB : ViewBinding>( |
|
|
|
window.decorView.background = BitmapDrawable(resources, it) |
|
|
|
window.decorView.background = BitmapDrawable(resources, it) |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e: OutOfMemoryError) { |
|
|
|
} catch (e: OutOfMemoryError) { |
|
|
|
toastOnUi("背景太大,内存溢出") |
|
|
|
toastOnUi("背景图片太大,内存溢出") |
|
|
|
} catch (e: Exception) { |
|
|
|
} catch (e: Exception) { |
|
|
|
AppLog.put("加载背景出错\n${e.localizedMessage}", e) |
|
|
|
AppLog.put("加载背景出错\n${e.localizedMessage}", e) |
|
|
|
} |
|
|
|
} |
|
|
|