Toast on error

This commit is contained in:
Damontecres 2026-02-14 16:22:06 -05:00
parent 8b87c6f773
commit a2a7c75d8a
No known key found for this signature in database

View file

@ -409,7 +409,7 @@ class MainActivity : AppCompatActivity() {
}
fun changeDisplayMode(modeId: Int) {
lifecycleScope.launch(Dispatchers.Main + ExceptionHandler()) {
lifecycleScope.launch(Dispatchers.Main + ExceptionHandler(autoToast = true)) {
val attrs = window.attributes
if (attrs.preferredDisplayModeId != modeId) {
Timber.d("Switch preferredDisplayModeId to %s", modeId)