mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Toast on error
This commit is contained in:
parent
8b87c6f773
commit
a2a7c75d8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue