mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-02-16 11:50:41 +01:00
SafeStorageContext added to Change Language dialog
This commit is contained in:
parent
5e23f27066
commit
3e9d8e6bb0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user