|
|
@ -33,7 +33,8 @@ abstract class BaseActivity<VB : ViewBinding>( |
|
|
|
val fullScreen: Boolean = true, |
|
|
|
val fullScreen: Boolean = true, |
|
|
|
private val theme: Theme = Theme.Auto, |
|
|
|
private val theme: Theme = Theme.Auto, |
|
|
|
private val toolBarTheme: Theme = Theme.Auto, |
|
|
|
private val toolBarTheme: Theme = Theme.Auto, |
|
|
|
private val transparent: Boolean = false |
|
|
|
private val transparent: Boolean = false, |
|
|
|
|
|
|
|
private val imageBg: Boolean = true |
|
|
|
) : AppCompatActivity(), |
|
|
|
) : AppCompatActivity(), |
|
|
|
CoroutineScope by MainScope() { |
|
|
|
CoroutineScope by MainScope() { |
|
|
|
|
|
|
|
|
|
|
@ -173,9 +174,13 @@ abstract class BaseActivity<VB : ViewBinding>( |
|
|
|
ATH.applyBackgroundTint(window.decorView) |
|
|
|
ATH.applyBackgroundTint(window.decorView) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (imageBg) { |
|
|
|
ThemeConfig.getBgImage(this)?.let { |
|
|
|
ThemeConfig.getBgImage(this)?.let { |
|
|
|
kotlin.runCatching { |
|
|
|
try { |
|
|
|
window.decorView.background = it |
|
|
|
window.decorView.background = it |
|
|
|
|
|
|
|
} catch (e: OutOfMemoryError) { |
|
|
|
|
|
|
|
toastOnUi("Image Bg Out Of Memory") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|