Merge pull request #1830 from esensar/fix/write-permission-dialog-layout-fix

Restore previous logic for selecting layout for WritePermissionDialog
This commit is contained in:
Tibor Kaputa 2023-09-18 09:06:31 +02:00 committed by GitHub
commit 13b1af3362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ class WritePermissionDialog(activity: Activity, val mode: Mode, val callback: ()
BaseSimpleActivity.funAfterSAFPermission = null
}
.apply {
activity.setupDialogStuff(if (mode == Mode.Otg) otgView.root else sdCardView.root, this, dialogTitle) { alertDialog ->
activity.setupDialogStuff(if (mode == Mode.SdCard) sdCardView.root else otgView.root, this, dialogTitle) { alertDialog ->
dialog = alertDialog
}
}