SafeStorageContext added to Change Language dialog

This commit is contained in:
merkost 2023-06-13 13:17:24 +10:00
parent 5e23f27066
commit 3e9d8e6bb0
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import com.simplemobiletools.commons.extensions.onGlobalLayout
import com.simplemobiletools.commons.models.RadioItem import com.simplemobiletools.commons.models.RadioItem
import com.simplemobiletools.keyboard.R import com.simplemobiletools.keyboard.R
import com.simplemobiletools.keyboard.extensions.getKeyboardDialogBuilder import com.simplemobiletools.keyboard.extensions.getKeyboardDialogBuilder
import com.simplemobiletools.keyboard.extensions.safeStorageContext
import com.simplemobiletools.keyboard.extensions.setupKeyboardDialogStuff import com.simplemobiletools.keyboard.extensions.setupKeyboardDialogStuff
class KeyboardRadioGroupDialog( class KeyboardRadioGroupDialog(
@ -23,7 +24,7 @@ class KeyboardRadioGroupDialog(
private val cancelCallback: (() -> Unit)? = null, private val cancelCallback: (() -> Unit)? = null,
private val callback: (newValue: Any) -> Unit private val callback: (newValue: Any) -> Unit
) { ) {
private val context = ContextThemeWrapper(inputView.context, R.style.MyKeyboard_Alert) private val context = ContextThemeWrapper(inputView.context.safeStorageContext, R.style.MyKeyboard_Alert)
private var dialog: AlertDialog? = null private var dialog: AlertDialog? = null
private var wasInit = false private var wasInit = false
private var selectedItemId = -1 private var selectedItemId = -1